Ejemplo n.º 1
0
    public void StartUserStream(long user_id)
    {
        Dictionary <string, string> streamParameters = new Dictionary <string, string>();

        TwitterAPI.SetStream(StreamType.PublicFilter, streamParameters, OnStream);
        TwitterAPI.StartStream(this);
    }
Ejemplo n.º 2
0
    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);
    }
Ejemplo n.º 3
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);
    }