public void StartUserStream(long user_id) { Dictionary <string, string> streamParameters = new Dictionary <string, string>(); TwitterAPI.SetStream(StreamType.PublicFilter, streamParameters, OnStream); TwitterAPI.StartStream(this); }
public void StartMyStream() { Dictionary <string, string> streamParameters = new Dictionary <string, string>(); streamParameters["stall_warnings"] = true.ToString(); TwitterAPI.SetStream(StreamType.User, streamParameters, OnStream); TwitterAPI.StartStream(this); }
void StartFriendsStream(FriendsidsResponse response) { Dictionary <string, string> streamParameters = new Dictionary <string, string>(); List <long> ids = new List <long>(); foreach (long id in response.ids) { ids.Add(id); } ids.Add(GlobalConfig.myTwitterInfo.id); FilterFollow myFriendsids = new FilterFollow(ids); streamParameters.Add(myFriendsids.GetKey(), myFriendsids.GetValue()); TwitterAPI.SetStream(StreamType.PublicFilter, streamParameters, OnStream); TwitterAPI.StartStream(this); }