예제 #1
0
 /// <summary>
 /// Delete an existing parking lot.
 /// Route: '/api/parking-lot-remove'
 /// </summary>
 /// <param name="json">JSON string</param>
 public static Task <string> RemoveParkingLot(string json)
 {
     try {
         return(http.Delete("/api/parking-lot/remove", json));
     } catch {
         Console.WriteLine("Couldn't Remove Parking Lot");
         throw;
     }
 }
 /// <summary>
 /// Delete an existing gateway.
 /// Route: '/api/gateway/remove'
 /// </summary>
 /// <param name="json">JSON string</param>
 public static Task <string> RemoveGateway(string json)
 {
     try {
         return(http.Delete("/api/gateway/remove", json));
     } catch {
         Console.WriteLine("Couldn't Remove Gateway");
         throw;
     }
 }
예제 #3
0
 /// <summary>
 /// Delete an existing sensor.
 /// Route: '/api/sensor/remove'
 /// </summary>
 /// <param name="json">JSON string</param>
 public static Task <string> RemoveSensor(string json)
 {
     try {
         return(http.Delete("/api/sensor/remove", json));
     } catch {
         Console.WriteLine("Couldn't Remove Sensor");
         throw;
     }
 }