Ejemplo n.º 1
0
 public static User Load(XmlElement element)
 {
     User user = new User();
     user.Id = element["id"].InnerText;
     user.Name = Util.RemoveEncoding(element["name"].InnerText);
     user.ScreenName = element["screen_name"].InnerText;
     user.Location = Util.RemoveEncoding(element["location"].InnerText);
     user.Description = Util.RemoveEncoding(element["description"].InnerText);
     user.ProfileImageUrl = element["profile_image_url"].InnerText;
     user.Url = element["url"].InnerText;
     return user;
 }
Ejemplo n.º 2
0
 private void LoadCurrentUser()
 {
     if (_currentUser != null)
     {
         return;
     }
     _currentUser = GetUser(_username);
 }
Ejemplo n.º 3
0
        public static User FromJson(string text)
        {
            User rtn = new User();

            rtn = Json.Helper.Deserialize<User>(text);

            return rtn;
        }