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
50
51
52
53
54
55
56
57
58
59
60
61
62
using SDK.Communication;
using SDK.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SDK.Contracts.Communication
{
class AddSectorResponseContract : PostResponseContract
{
public int Id { get; set; }
public string Guid { get; set; }
public int BranchId { get; set; }
public string Title { get; set; }
public double BarrierWidth { get; set; }
public double BarrierHeight { get; set; }
public double SectorWidth { get; set; }
public double SectorHeight { get; set; }
public long Modified { get; set; }
public GpsItemContract[] GpsItems { get; set; }
public AreaContract[] Areas { get; set; }
public BarrierContract[] Barriers { get; set; }
public BeaconContract[] Beacons { get; set; }
public SensorContract[] Sensors { get; set; }
public static explicit operator SectorContract(AddSectorResponseContract addSectorResponseContract)
{
return new SectorContract
{
Id = addSectorResponseContract.Id,
Guid = addSectorResponseContract.Guid,
BranchId = addSectorResponseContract.BranchId,
Title = addSectorResponseContract.Title,
BarrierHeight = addSectorResponseContract.BarrierHeight,
BarrierWidth = addSectorResponseContract.BarrierWidth,
SectorWidth = addSectorResponseContract.SectorWidth,
SectorHeight = addSectorResponseContract.SectorHeight,
Modified = addSectorResponseContract.Modified,
GpsItems = addSectorResponseContract.GpsItems,
Areas = addSectorResponseContract.Areas,
Barriers = addSectorResponseContract.Barriers,
Beacons = addSectorResponseContract.Beacons,
Sensors = addSectorResponseContract.Sensors
};
}
}
}