Beispiel #1
0
 public Status()
     : base()
 {
     user = new User();
     retweeted_status = new RetweetedStatus();
     annotations = new Annotations();
 }
Beispiel #2
0
 //Get 'user' node in 'statuses' node
 private void GetUserInStatuses(User mUser, XElement existStatuses)
 {
     #region GetUserInStatuses
     //mStatus.User.Id = int.Parse(existStatuses.Element("user").Element("id").Value);//Old method
     mUser.Id = long.Parse(GetThirdLNValueInStatuses(existStatuses, "long", "user", "id"));
     mUser.Idstr = GetThirdLNValueInStatuses(existStatuses, "string", "user", "idstr");
     mUser.Class = int.Parse(GetThirdLNValueInStatuses(existStatuses, "int", "user", "class"));
     mUser.ScreenName = GetThirdLNValueInStatuses(existStatuses, "string", "user", "screen_name");
     mUser.Name = GetThirdLNValueInStatuses(existStatuses, "string", "user", "name");
     mUser.Province = GetThirdLNValueInStatuses(existStatuses, "string", "user", "province");
     mUser.City = GetThirdLNValueInStatuses(existStatuses, "string", "user", "city");
     mUser.Location = GetThirdLNValueInStatuses(existStatuses, "string", "user", "location");
     mUser.Description = GetThirdLNValueInStatuses(existStatuses, "string", "user", "description");
     mUser.Url = GetThirdLNValueInStatuses(existStatuses, "string", "user", "url");
     mUser.ProfileImageUrl = GetThirdLNValueInStatuses(existStatuses, "string", "user", "profile_image_url");
     mUser.ProfileUrl = GetThirdLNValueInStatuses(existStatuses, "string", "user", "profile_url");
     mUser.Domain = GetThirdLNValueInStatuses(existStatuses, "string", "user", "domain");
     mUser.Weihao = GetThirdLNValueInStatuses(existStatuses, "string", "user", "weihao");
     mUser.Gender = GetThirdLNValueInStatuses(existStatuses, "string", "user", "gender");
     mUser.FollowersCount = int.Parse(GetThirdLNValueInStatuses(existStatuses, "int", "user", "followers_count"));
     mUser.FriendsCount = int.Parse(GetThirdLNValueInStatuses(existStatuses, "int", "user", "friends_count"));
     mUser.PagefriendsCount = int.Parse(GetThirdLNValueInStatuses(existStatuses, "int", "user", "pagefriends_count"));
     mUser.StatusesCount = int.Parse(GetThirdLNValueInStatuses(existStatuses, "int", "user", "statuses_count"));
     mUser.FavouritesCount = int.Parse(GetThirdLNValueInStatuses(existStatuses, "int", "user", "favourites_count"));
     mUser.CreatedAt = GetThirdLNValueInStatuses(existStatuses, "string", "user", "created_at");
     mUser.Following = bool.Parse(GetThirdLNValueInStatuses(existStatuses, "bool", "user", "following"));
     mUser.AllowAllActMsg = bool.Parse(GetThirdLNValueInStatuses(existStatuses, "bool", "user", "allow_all_act_msg"));
     mUser.GeoEnabled = bool.Parse(GetThirdLNValueInStatuses(existStatuses, "bool", "user", "geo_enabled"));
     mUser.Verified = bool.Parse(GetThirdLNValueInStatuses(existStatuses, "bool", "user", "verified"));
     mUser.VerifiedType = int.Parse(GetThirdLNValueInStatuses(existStatuses, "int", "user", "verified_type"));
     mUser.Remark = GetThirdLNValueInStatuses(existStatuses, "string", "user", "remark");
     mUser.Ptype = int.Parse(GetThirdLNValueInStatuses(existStatuses, "int", "user", "ptype"));
     mUser.AllowAllComment = bool.Parse(GetThirdLNValueInStatuses(existStatuses, "bool", "user", "allow_all_comment"));
     mUser.AvatarLarge = GetThirdLNValueInStatuses(existStatuses, "string", "user", "avatar_large");
     mUser.AvatarHd = GetThirdLNValueInStatuses(existStatuses, "string", "user", "avatar_hd");
     mUser.VerifiedReason = GetThirdLNValueInStatuses(existStatuses, "string", "user", "verified_reason");
     mUser.VerifiedTrade = GetThirdLNValueInStatuses(existStatuses, "string", "user", "verified_trade");
     mUser.VerifiedReasonUrl = GetThirdLNValueInStatuses(existStatuses, "string", "user", "verified_reason_url");
     mUser.VerifiedSource = GetThirdLNValueInStatuses(existStatuses, "string", "user", "verified_source");
     mUser.VerifiedSourceUrl = GetThirdLNValueInStatuses(existStatuses, "string", "user", "verified_source_url");
     mUser.VerifiedState = int.Parse(GetThirdLNValueInStatuses(existStatuses, "int", "user", "verified_state"));
     mUser.VerifiedLevel = int.Parse(GetThirdLNValueInStatuses(existStatuses, "int", "user", "verified_level"));
     mUser.VerifiedReasonModified = GetThirdLNValueInStatuses(existStatuses, "string", "user", "verified_reason_modified");
     mUser.VerifiedContactName = GetThirdLNValueInStatuses(existStatuses, "string", "user", "verified_contact_name");
     mUser.VerifiedContactMobile = GetThirdLNValueInStatuses(existStatuses, "string", "user", "verified_contact_mobile");
     mUser.FollowMe = bool.Parse(GetThirdLNValueInStatuses(existStatuses, "bool", "user", "follow_me"));
     mUser.OnlineStatus = int.Parse(GetThirdLNValueInStatuses(existStatuses, "int", "user", "online_status"));
     mUser.BiFollowersCount = int.Parse(GetThirdLNValueInStatuses(existStatuses, "int", "user", "bi_followers_count"));
     mUser.Lang = GetThirdLNValueInStatuses(existStatuses, "string", "user", "lang");
     mUser.Star = int.Parse(GetThirdLNValueInStatuses(existStatuses, "int", "user", "star"));
     mUser.Mbtype = int.Parse(GetThirdLNValueInStatuses(existStatuses, "int", "user", "mbtype"));
     mUser.Mbrank = int.Parse(GetThirdLNValueInStatuses(existStatuses, "int", "user", "mbrank"));
     mUser.BlockWord = int.Parse(GetThirdLNValueInStatuses(existStatuses, "int", "user", "block_word"));
     mUser.BlockApp = int.Parse(GetThirdLNValueInStatuses(existStatuses, "int", "user", "block_app"));
     mUser.CreditScore = int.Parse(GetThirdLNValueInStatuses(existStatuses, "int", "user", "credit_score"));
     mUser.UserAbility = int.Parse(GetThirdLNValueInStatuses(existStatuses, "int", "user", "user_ability"));
     mUser.Urank = int.Parse(GetThirdLNValueInStatuses(existStatuses, "int", "user", "urank"));
     #endregion
 }