Platform.cs 781 B

1234567891011121314151617181920212223242526272829303132
  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. }
  16. public static class PlatformUtils
  17. {
  18. public static string PlatformToString(Platform platform) => platform switch
  19. {
  20. Platform.Wpf => "Wpf",
  21. Platform.TimeBench => "Mobile",
  22. Platform.DatabaseEngine => "Database",
  23. Platform.WebEngine => "Web Engine",
  24. Platform.GPSEngine => "GPS Engine",
  25. Platform.SchedulerEngine => "Scheduler",
  26. Platform.Server => "Server",
  27. _ => platform.ToString()
  28. };
  29. }
  30. }