Esempio n. 1
0
        protected async override void OnAppearing()
        {
            base.OnAppearing();
            //your code here;
            var service = new PIWebApiService();

            var results = await service.DownloadWebData("https://pi.dvnhackathon.com/piwebapi/streams/P0jyMYLmgLIU6nZDex9wsupAunECAAT1NJU09GVFBJLTAwMVxGUkFDLlVGTDo6U0tJRCAjNzcuR0VMX0JSRUFLRVJfQUNUSVZF/value");

            lblJsonResut.Text = results;

            //ViewModels.Data.Point result = JsonConvert.DeserializeObject<ViewModels.Data.Point>(results);
            //this.BindingContext = result;
        }
Esempio n. 2
0
        protected async override void OnAppearing()
        {
            base.OnAppearing();
            //your code here;
            var service = new PIWebApiService();

            var results = await service.DownloadWebData("https://pi.dvnhackathon.com/piwebapi/streams/P0jyMYLmgLIU6nZDex9wsupAunECAAT1NJU09GVFBJLTAwMVxGUkFDLlVGTDo6U0tJRCAjNzcuR0VMX0JSRUFLRVJfQUNUSVZF/recorded?starttime=*-30d&endtime=*");

            Point result = JsonConvert.DeserializeObject <Point>(results);

            //strvaluepoint.Text = result.Value;
            //strtimestamp.Text = result.Timestamp;

            //BindingContext = result.Value;
        }