GPSTrackerDeviceType.cs 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. using System;
  2. using System.Collections.Generic;
  3. namespace Comal.Classes
  4. {
  5. public enum GPSTrackerDeviceType
  6. {
  7. Bluetooth = 0,
  8. Sigfox = 1,
  9. IOT = 2,
  10. Unknown = 3
  11. }
  12. public static class GPSTrackerDeviceDefaults
  13. {
  14. public static IReadOnlyDictionary<GPSTrackerDeviceType, TimeSpan> Time => new Dictionary<GPSTrackerDeviceType, TimeSpan>
  15. {
  16. { GPSTrackerDeviceType.Bluetooth, new TimeSpan(0, 15, 0) },
  17. { GPSTrackerDeviceType.Sigfox, new TimeSpan(0, 5, 0) },
  18. { GPSTrackerDeviceType.IOT, new TimeSpan(0, 2, 0) },
  19. { GPSTrackerDeviceType.Unknown, new TimeSpan(0, 0, 0) }
  20. };
  21. public static IReadOnlyDictionary<GPSTrackerDeviceType, int> Distance => new Dictionary<GPSTrackerDeviceType, int>
  22. {
  23. { GPSTrackerDeviceType.Bluetooth, 100 },
  24. { GPSTrackerDeviceType.Sigfox, 200 },
  25. { GPSTrackerDeviceType.IOT, 50 },
  26. { GPSTrackerDeviceType.Unknown, 0 }
  27. };
  28. }
  29. }