Ejemplo n.º 1
0
 /// <summary>
 /// Update device. This method is used to update basic properties of the device (like name).
 ///
 /// Send PUT request to the APIROOT/devices Url
 /// </summary>
 /// <param name="device">Device instance</param>
 /// <exception cref="WebException">This exception indicates some service level error. Please refer to the HTTP error code for more information</exception>
 public void Update(Device device)
 {
     RestConnection.Put("devices", JsonSerializer.Serialize(device));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Update service. This method is used to update basic properties of the service (like name).
 /// To update the telemetry data sink please use the <seealso cref="UpdateIncomingTelemetryDataSinks"/> method.
 ///
 /// Send PUT request to the APIROOT/services Url
 /// </summary>
 /// <param name="service">Service instance</param>
 /// <exception cref="WebException">This exception indicates some service level error. Please refer to the HTTP error code for more information</exception>
 public void Update(Service service)
 {
     RestConnection.Put("services", JsonSerializer.Serialize(service));
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Update network. This method is used to update basic properties of the network (like name).
 /// To update the telemetry data sink please use the <seealso cref="UpdateIncomingTelemetryDataSinks"/> method.
 ///
 /// Send PUT request to the APIROOT/networks Url
 /// </summary>
 /// <param name="network">Network instance</param>
 /// <exception cref="WebException">This exception indicates some service level error. Please refer to the HTTP error code for more information</exception>
 public void Update(Network network)
 {
     RestConnection.Put("networks", JsonSerializer.Serialize(network));
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Update company. This method is used to update basic properties of the company (like name).
 /// To update the telemetry data sink please use the <seealso cref="UpdateIncomingTelemetryDataSinks"/> method.
 ///
 /// Send PUT request to the APIROOT/companies Url
 /// </summary>
 /// <param name="company">Company instance</param>
 /// <exception cref="WebException">This exception indicates some service level error. Please refer to the HTTP error code for more information</exception>
 public void Update(Company company)
 {
     RestConnection.Put("companies", JsonSerializer.Serialize(company));
 }