Exemplo n.º 1
0
    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);
    }
Exemplo n.º 2
0
    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);
    }