Beispiel #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;
 }
Beispiel #2
0
 private void LoadCurrentUser()
 {
     if (_currentUser != null)
     {
         return;
     }
     _currentUser = GetUser(_username);
 }
Beispiel #3
0
        public static User FromJson(string text)
        {
            User rtn = new User();

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

            return rtn;
        }