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

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

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

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

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