Esempio n. 1
0
        public async void getDriverInformation()
        {
            string methodName = "driver";
            var    result     = await RequestToServer.sendGetRequest(methodName);

            JObject jsonObject = JObject.Parse(result);
            //set information to view
        }
Esempio n. 2
0
        public async void getDriverInfo()
        {
            var result = await RequestToServer.sendGetRequest("driver");

            JObject jsonObject = JObject.Parse(result);

            txtbDriverLicense.Text = jsonObject.Value <string>("driver_license");

            //get picture
            imgDriverLicense.Source = ImageConvert.ImageConvert.convertBase64ToImage(jsonObject.Value <string>("driver_license_img").Trim());
        }
Esempio n. 3
0
        public async void getUserInfo()
        {
            var result = await RequestToServer.sendGetRequest("user");

            JObject jsonObject = JObject.Parse(result);

            txtbEmail.Text      = jsonObject.Value <string>("email");
            txtbFullname.Text   = jsonObject.Value <string>("fullname");
            txtbPhone.Text      = jsonObject.Value <string>("phone");
            txtbPersonalID.Text = jsonObject.Value <string>("personalID");

            //get picture
            imgAvatar.Source     = ImageConvert.ImageConvert.convertBase64ToImage(jsonObject.Value <string>("link_avatar"));
            imgPersonalID.Source = ImageConvert.ImageConvert.convertBase64ToImage(jsonObject.Value <string>("personalID_img"));
        }
Esempio n. 4
0
        public async void getUserInformation()
        {
            string methodName = "user";
            var    result     = await RequestToServer.sendGetRequest(methodName);

            JObject jsonObject = JObject.Parse(result);

            //set information to view
            txtboxEmail.Text       = jsonObject.Value <string>("email");
            txtboxPhone.Text       = jsonObject.Value <string>("phone");
            txtboxPersionalId.Text = jsonObject.Value <string>("personalID");
            txtblockFullName.Text  = jsonObject.Value <string>("fullname");
            //set Image
            imgAvatar.Source     = ImageConvert.ImageConvert.convertBase64ToImage(jsonObject.Value <string>("link_avatar").Trim());
            imgPersonalID.Source = ImageConvert.ImageConvert.convertBase64ToImage(jsonObject.Value <string>("personalID_img").Trim());
        }
Esempio n. 5
0
 public async void getChartInfo()
 {
     var result = await RequestToServer.sendGetRequest("user");
 }