public GetDeviceByIdMessage GetDeviceById(string deviceId) { var response = PimaticRestClient.PerformHttpGet("/api/devices/" + deviceId); return(JsonConvert.DeserializeObject <GetDeviceByIdMessage>(GetResultMessage(response))); }
public GetDeviceClassesMessage GetDeviceClasses() { var response = PimaticRestClient.PerformHttpGet("/api/device-class"); return(JsonConvert.DeserializeObject <GetDeviceClassesMessage>(GetResultMessage(response))); }
//TODO NICOLAS Create Object for GetConfig public GetConfigMessage GetConfig() { var response = PimaticRestClient.PerformHttpGet("/api/config?password=" + PimaticSettings.Password); return(JsonConvert.DeserializeObject <GetConfigMessage>(GetResultMessage(response))); }