Beispiel #1
0
        /// <summary>
        /// InternalParseUserProfile
        /// </summary>
        protected override OAuthUserProfile InternalParseUserProfile(string response)
        {
            JObject          results = JsonConvert.DeserializeObject <dynamic>(response);
            OAuthUserProfile model   = new OAuthUserProfile();

            model.Email     = results.GetPropertyValue <String>("email");
            model.FirstName = results.GetPropertyValue <String>("first_name");
            model.LastName  = results.GetPropertyValue <String>("last_name");
            model.Locale    = results.GetPropertyValue <String>("locale");
            model.Name      = results.GetPropertyValue <String>("name");
            return(model);
        }
 /// <summary>
 /// InternalParseUserProfile
 /// </summary>
 protected override OAuthUserProfile InternalParseUserProfile(string response)
 {
     JObject results = JsonConvert.DeserializeObject<dynamic>(response);
     OAuthUserProfile model = new OAuthUserProfile();
     model.Email = results.GetPropertyValue<String>("email");
     model.FirstName = results.GetPropertyValue<String>("first_name");
     model.LastName = results.GetPropertyValue<String>("last_name");
     model.Locale = results.GetPropertyValue<String>("locale");
     model.Name = results.GetPropertyValue<String>("name");
     return model;
 }