Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;
namespace SDK.Contracts.Data
{
public class DeviceLocationContract
{
[Required]
public string Login { get; set; }
public LocationContract[] Locations { get; set; }
}
public class LocationContract
{
[Required]
public long Timestamp { get; set; }
public int? SectorId { get; set; }
public float? X { get; set; }
public float? Y { get; set; }
public float? Z { get; set; }
public int? Interval { get; set; }
public byte? Battery { get; set; } = 0;
public bool IsMoving { get; set; }
public DistanceContract[] Distances { get; set; }
public int[] LocalizationAreas { get; set; }
public int[] NoGoAreas { get; set; }