Exemplo n.º 1
0
        /// <summary>
        /// process the response from server and update the properties
        /// </summary>
        protected override bool ProcessResponse(HttpResponse response)
        {
            string json = response.Result;

            // deserialize
            RGBLedData = JsonConvert.DeserializeObject <RGBLedData>(json);
            return(true);
        }
Exemplo n.º 2
0
 /// <summary>
 /// constructor
 /// </summary>
 public RGBLedClient(string id, IotHttpClient client, IotNode parent)
     : base(id, client, parent)
 {
     RGBLedData = new RGBLedData();
 }