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