void OnGetFriends(bool success, string response) { if (!success) { _SystemMessageHandler.GenerateSystemMessage(response); } Dictionary <string, string> streamParameters = new Dictionary <string, string>(); IdsOfTweetDisplayed = new List <long>(); FriendsidsResponse Response = JsonUtility.FromJson <FriendsidsResponse>(response); StartFriendsStream(Response); }
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); }