예제 #1
0
        public GetDeviceByIdMessage GetDeviceById(string deviceId)
        {
            var response = PimaticRestClient.PerformHttpGet("/api/devices/" + deviceId);

            return(JsonConvert.DeserializeObject <GetDeviceByIdMessage>(GetResultMessage(response)));
        }
예제 #2
0
        public GetDeviceClassesMessage GetDeviceClasses()
        {
            var response = PimaticRestClient.PerformHttpGet("/api/device-class");

            return(JsonConvert.DeserializeObject <GetDeviceClassesMessage>(GetResultMessage(response)));
        }
예제 #3
0
        //TODO NICOLAS Create Object for GetConfig
        public GetConfigMessage GetConfig()
        {
            var response = PimaticRestClient.PerformHttpGet("/api/config?password=" + PimaticSettings.Password);

            return(JsonConvert.DeserializeObject <GetConfigMessage>(GetResultMessage(response)));
        }