Ejemplo n.º 1
0
 public void AddBoundary(string polygonUID, string polygonName, List <WGSPoint> polygonLL, GeofenceType polygonType)
 {
     PolygonUid  = polygonUID;
     PolygonName = polygonName;
     PolygonLL   = polygonLL;
     PolygonType = polygonType;
 }
Ejemplo n.º 2
0
 public static string GeofenceTypeToString(GeofenceType type)
 {
     return(type switch
     {
         GeofenceType.Circle => "circle",
         GeofenceType.Geofence => "geofence",
         _ => type.ToString(),
     });
Ejemplo n.º 3
0
 public void Delete(int id)
 {
     GeofenceType.DeleteGFT(id);
 }
Ejemplo n.º 4
0
 public void Patch(int id, string name, string colour, int enterpriseid, string active)
 {
     GeofenceType.UpdateGFT(id, name, colour, enterpriseid, active);
 }
Ejemplo n.º 5
0
 public void Post(int id, string name, string colour, int enterpriseid, string active)
 {
     GeofenceType.PostGFT(id, name, colour, enterpriseid, active);
 }
Ejemplo n.º 6
0
 public List <GeofenceType> Get()
 {
     return(GeofenceType.GetAll());
 }