1234567891011121314151617181920212223242526272829303132 |
- using System;
- using System.Collections.Generic;
- namespace Comal.Classes
- {
- public enum GPSTrackerDeviceType
- {
- Bluetooth = 0,
- Sigfox = 1,
- IOT = 2,
- Unknown = 3
- }
- public static class GPSTrackerDeviceDefaults
- {
- public static IReadOnlyDictionary<GPSTrackerDeviceType, TimeSpan> Time => new Dictionary<GPSTrackerDeviceType, TimeSpan>
- {
- { GPSTrackerDeviceType.Bluetooth, new TimeSpan(0, 15, 0) },
- { GPSTrackerDeviceType.Sigfox, new TimeSpan(0, 5, 0) },
- { GPSTrackerDeviceType.IOT, new TimeSpan(0, 2, 0) },
- { GPSTrackerDeviceType.Unknown, new TimeSpan(0, 0, 0) }
- };
- public static IReadOnlyDictionary<GPSTrackerDeviceType, int> Distance => new Dictionary<GPSTrackerDeviceType, int>
- {
- { GPSTrackerDeviceType.Bluetooth, 100 },
- { GPSTrackerDeviceType.Sigfox, 200 },
- { GPSTrackerDeviceType.IOT, 50 },
- { GPSTrackerDeviceType.Unknown, 0 }
- };
- }
- }
|