/// <summary> /// Retweetしたユーザーから削除します。 /// </summary> /// <param name="user"></param> public void RemoveRetweet(TwitterUser user) { if (retweetDict == null || !retweetDict.ContainsKey(user)) return; else retweetDict.Remove(user); RetweetTableUpdated(); TweetModel.RaiseExtraDataTableUpdated(this.LinkId); }
/// <summary> /// Retweetしたユーザーとして追加します。 /// </summary> public bool AddRetweet(TwitterUser user, DateTime time) { if (retweetDict == null) retweetDict = new SafeDictionary<TwitterUser, DateTime>(); var ret = retweetDict.AddOrUpdate(user, time); RetweetTableUpdated(); TweetModel.RaiseExtraDataTableUpdated(this.LinkId); return ret; }
public TwitterUserViewModel(TwitterUser user, AccountElement parent) { this.TwitterUser = user; this.ParentAccountElement = parent; }
public FollowManager(TwitterUser user) { InitializeComponent(); this.DataContext = new FollowManagerViewModel(user); }
/// <summary> /// 指定したIDをfavったリストに追加します。 /// </summary> public void AddFavored(TwitterUser user) { if (favoredAccounts == null) favoredAccounts = new SafeList<TwitterUser>(); favoredAccounts.AddUnique(user); FavoredAccountsUpdated(); TweetModel.RaiseExtraDataTableUpdated(this.LinkId); }
/// <summary> /// Create twitter user data from search node /// </summary> public static TwitterUser CreateBySearchNode(XElement sNode) { var ret = new TwitterUser(); ret.Id = sNode.Element("from_user_id").ParseLong(); ret.ScreenName = sNode.Element("from_user").ParseString(); ret.Lang = sNode.Element("iso_language_code").ParseString(); ret.Protected = false; ret.Profile = new ProfileInformation(); return ret; }
public FollowManagerViewModel(TwitterUser target) { this.Target = target; }
public ExUserItemViewModel(TwitterUser user) { this.User = user; }
public Relation(AccountElement elem, TwitterUser user) { this.Element = elem; this.TargetUser = user; IsInactive = false; RefreshUserData(); if (Math.Abs(elem.Following.Count - elem.TwitterUserData.FriendsCount) > 10) IsDataOutOfDate = true; }
public static void Add(TwitterUser user) { userDict.AddOrUpdate(user.ScreenName, user); }
public static bool IsFollowerAny(TwitterUser user) { return AccountModel.GetAccountElements().Any((d) => d.Followers.Contains(user)); }
public static bool IsFollowerCurrent(TwitterUser user) { var ctab = CommonEventServer.CurrentTabData; if (ctab == null) return false; return ctab.LinkAccounts .Select((a) => AccountModel.GetAccountElement(a)) .Where((e) => e != null) .All((d) => d.Followers.Contains(user)); }
public static bool IsFollowingAll(TwitterUser user) { return AccountModel.GetAccountElements().All((d) => d.Following.Contains(user)); }