Esempio n. 1
0
        public int GetStatusCodeFromResponseBody(string jsonResponse)
        {
            RootObject rootObject = JsonConvert.DeserializeObject <RootObject>(jsonResponse);

            return(rootObject.status);
        }
Esempio n. 2
0
        public string GetLastName(string jsonResponse)
        {
            RootObject rootObject = JsonConvert.DeserializeObject <RootObject>(jsonResponse);

            return(rootObject.data[0].info.lastName);
        }
Esempio n. 3
0
        public string GetEmail(string jsonResponse)
        {
            RootObject rootObject = JsonConvert.DeserializeObject <RootObject>(jsonResponse);

            return(rootObject.data[0].info.email);
        }
Esempio n. 4
0
        public int GetId(string jsonResponse)
        {
            RootObject rootObject = JsonConvert.DeserializeObject <RootObject>(jsonResponse);

            return(rootObject.data[0].id);
        }