|
- using GpsCardGatewayPosition.Common;
-
- namespace GpsCardGatewayPosition.Service.Biz.Location.Dto.Wayz
- {
- public class WayzRequest
- {
-
-
- public long Timestamp { get; set; } = Utils.ConvertToSTimeStamp(DateTime.Now);
-
-
-
-
-
-
-
-
-
-
- public virtual string Id { get; set; } = Guid.NewGuid().ToString("D");
-
- public virtual AssetDevice Asset { get; set; } = new AssetDevice
- {
- Id= "679e9043-14fe-44df-aba6-b2fd62592fea",
- Manufacturer= "telpo",
- ImeiMd5= "1be14c6210b3115f",
- UniqueId= "8f95204d-a60e-40bb-b8be-45a1ab3bef2a"
-
- };
-
- public LocationDetail Location { get; set; }
-
- public class LocationDetail
- {
-
-
-
- public List<WifiItem> Wifis { get; set; }
-
-
-
-
- public List<CellularItem> Cellulars { get; set; }
-
-
-
- public Gnss Gnss { get; set; }
-
-
-
-
- public Postion Position { get; set; }
-
- }
-
-
-
- public class AssetDevice
- {
- public string Id { get; set; }
- public string Manufacturer { get; set; }
- public string ImeiMd5 { get; set; }
- public string UniqueId { get; set; }
-
- }
-
- public class Item
- {
-
-
-
- public long Timestamp { get; set; }= Utils.ConvertToSTimeStamp(DateTime.Now);
-
-
-
- public bool Connected { get; set; } = default;
-
-
-
- public virtual int SignalStrength { get; set; } = default;
- }
- public class WifiItem: Item
- {
-
-
-
- public string MacAddress { get; set; }
-
-
-
- public string Ssid { get; set; } = default;
-
-
-
- public override int SignalStrength { get; set; }
-
-
-
- public int Frequency { get; set; } = default;
-
-
-
- public int Channel { get; set; } = default;
-
-
- }
- public class CellularItem: Item
- {
-
-
-
- public int CellId { get; set; }
-
-
-
- public string RadioType { get; set; }
-
-
-
- public int MobileCountryCode { get; set; }
-
-
-
- public int MobileNetworkCode { get; set; }
-
-
-
-
- public int LocationAreaCode { get; set; }
-
- }
-
- public class Gnss
- {
-
-
-
- public long Timestamp { get; set; }
-
- public Point Point { get; set; }
-
-
-
-
- public float Accuracy { get; set; } = 0f;
-
-
-
- public float VerticalAccuracy { get; set; } = default;
-
-
-
- public float Velocity { get; set; }
-
-
-
- public float VelocityAccuracy { get; set; } = default;
-
-
-
- public int Heading { get; set; } = 0;
- }
-
- public class Postion
- {
- public long Timestamp { get; set; }
-
- public Point Point { get; set; }
-
- public float Accuracy { get; set; } = 0f;
-
- public string SpatialReference { get; set; } = "gcj02";
-
- }
- public class Point
- {
-
-
-
-
- public decimal Longitude { get; set; }
-
-
-
-
-
- public decimal Latitude { get; set; }
-
-
-
- public float Altitude { get; set; }=default;
- }
- }
-
-
- }
|