public Stream(Oauth oauth, StreamType type) { Oauth = oauth; string[] endpoints = { "statuses/filter", "statuses/sample", "user", "site" }; if (type == StreamType.Filter || type == StreamType.Sample) { REQUEST_URL = "https://stream.twitter.com/1.1/" + endpoints[(int)type] + ".json"; } else if (type == StreamType.User) { REQUEST_URL = "https://userstream.twitter.com/1.1/user.json"; } else if (type == StreamType.Site) { REQUEST_URL = "https://sitestream.twitter.com/1.1/site.json"; } }
public Client(Oauth oauth) { Oauth = oauth; }