Newer
Older
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
{
public class AddBeaconResponseContract : PostResponseContract
{
public int Id { get; set; }
public int BranchId { get; set; }
public string Mac { get; set; }
public string Title { get; set; }
public bool Active { get; set; }
public bool Position { get; set; }
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
public bool UseGps { get; set; }
public string CFUUID { get; set; }
public long Created { get; set; }
public long Update { get; set; }
public static explicit operator BeaconContract (AddBeaconResponseContract addBeaconResponseContract)
{
return new BeaconContract
{
Id = addBeaconResponseContract.Id,
SectorId = addBeaconResponseContract.SectorId,
BranchId = addBeaconResponseContract.BranchId,
Mac = addBeaconResponseContract.Mac,
X = addBeaconResponseContract.X,
Y = addBeaconResponseContract.Y,
Z = addBeaconResponseContract.Z,
Title = addBeaconResponseContract.Title,
Active = addBeaconResponseContract.Active,
Position = addBeaconResponseContract.Position,
TypeId = addBeaconResponseContract.TypeId,
Geofence = addBeaconResponseContract.Geofence,
GeofenceRange = addBeaconResponseContract.GeofenceRange,
Cluster = addBeaconResponseContract.Cluster,
LastTimeOnline = addBeaconResponseContract.LastTimeOnline,
UseGps = addBeaconResponseContract.UseGps,
CFUUID = addBeaconResponseContract.CFUUID,
Created = addBeaconResponseContract.Created,
Update = addBeaconResponseContract.Update,
};
}
}
}