Platform.cs 806 B

123456789101112131415161718192021222324252627282930313233
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace InABox.Core
  5. {
  6. public enum Platform
  7. {
  8. TimeBench,
  9. Wpf,
  10. DatabaseEngine,
  11. WebEngine,
  12. GPSEngine,
  13. SchedulerEngine,
  14. Server,
  15. LicensingEngine
  16. }
  17. public static class PlatformUtils
  18. {
  19. public static string PlatformToString(Platform platform) => platform switch
  20. {
  21. Platform.Wpf => "Wpf",
  22. Platform.TimeBench => "Mobile",
  23. Platform.DatabaseEngine => "Database",
  24. Platform.WebEngine => "Web Engine",
  25. Platform.GPSEngine => "GPS Engine",
  26. Platform.SchedulerEngine => "Scheduler",
  27. Platform.Server => "Server",
  28. _ => platform.ToString()
  29. };
  30. }
  31. }