public Device RemoveDevice(string deviceId) { CheckDevice(deviceId); var response = PimaticRestClient.PerformHttpDelete("/api/device-config/" + deviceId); return(JsonConvert.DeserializeObject <Device>(GetResultMessage(response))); }
public RemoveDeviceFromPageMessage RemoveDeviceFromPage(string pageId, string deviceId) { _checkPage(pageId); var response = PimaticRestClient.PerformHttpDelete("/api/pages/" + pageId + "/devices/" + deviceId); return(JsonConvert.DeserializeObject <RemoveDeviceFromPageMessage>(GetResultMessage(response))); }