コード例 #1
0
 /// <summary>
 /// Updating an existing parking lot.
 /// Route: '/api/parking-lot/update'
 /// </summary>
 /// <param name="json">JSON string</param>
 public static Task <string> UpdateParkingLot(string json)
 {
     try {
         return(http.Put("/api/parking-lot/update", json));
     } catch {
         Console.WriteLine("Couldn't Update Parking Lot");
         throw;
     }
 }
コード例 #2
0
 /// <summary>
 /// Update an existing gateway.
 /// Route: '/api/gateway/update'
 /// </summary>
 /// <param name="json">JSON string</param>
 public static Task <string> UpdateGateway(string json)
 {
     try {
         return(http.Put("/api/gateway/update", json));
     } catch {
         Console.WriteLine("Couldn't Update Gateway");
         throw;
     }
 }
コード例 #3
0
 /// <summary>
 /// Update an existing sensor.
 /// Route: '/api/sensor/update'
 /// </summary>
 /// <param name="json">JSON string</param>
 public static Task <string> UpdateSensor(string json)
 {
     try {
         return(http.Put("/api/sensor/update", json));
     } catch {
         Console.WriteLine("Couldn't Update Sensor");
         throw;
     }
 }