public ListStatuses(TwitterAccount account, ListInfo li) : base() { Account = account; List = li; RestInfo = account.RestList.CopyConfig (); }
public User[] GetListMembers(ListInfo li) { return(GetListMembers(li.User.ID.ToString(), li.ID)); }
public StreamingClient(TwitterAccount[] accounts, TwitterAccount liAccount, ListInfo li, IStreamingHandler target, bool dummy) : this(accounts, target, dummy) { StreamingUri = StreamingFilterUri; if (dummy) return; ThreadPool.QueueUserWorkItem (delegate (object o) { string[] postDatas = new string[accounts.Length]; User[] users = liAccount.TwitterClient.GetListMembers (li); for (int j = 0, p = 0; j < accounts.Length; j++, p = Math.Min (users.Length, p + MaxFollowCount) % users.Length) { StringBuilder sb = new StringBuilder (); for (int i = 0; i < Math.Min (MaxFollowCount, users.Length - p); i++) { sb.Append (users[i + p].ID); sb.Append (','); } if (sb.Length > 0) sb.Remove (sb.Length - 1, 1); _states[j].StreamingPostData = "follow=" + OAuthBase.UrlEncode (sb.ToString ()); } StreamingStart (); }); }
public Status[] GetListStatuses(ListInfo li, ulong?since_id, ulong?max_id, int?count, int?page) { return(GetListStatuses(li.User.ID.ToString(), li.ID, since_id, max_id, count, page)); }