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
39
40
41
42
43
44
45
46
47
48
49
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 class DistanceContract
{
public int BeaconId { get; set; }
public float Distance { get; set; }
public int RSSI { get; set; }
}
}