Example #1
0
        public ITweetStream CreateTweetStream(ICreateTweetStreamParameters parameters)
        {
            parameters ??= new CreateTweetStreamParameters();
            var customRequestParameters = _tweetStreamFactory.GenerateParameterOverrideWrapper("createTweetStreamParameters", parameters);
            var stream = _tweetStreamFactory.Create(customRequestParameters);

            stream.TweetMode = parameters.TweetMode ?? _client.ClientSettings.TweetMode;
            return(stream);
        }
Example #2
0
 public TweetStream(
     ITwitterClient client,
     IStreamResultGenerator streamResultGenerator,
     IJsonObjectConverter jsonObjectConverter,
     IJObjectStaticWrapper jObjectStaticWrapper,
     ITwitterClientFactories factories,
     ICreateTweetStreamParameters createTweetStreamParameters)
     : base(streamResultGenerator, jsonObjectConverter, jObjectStaticWrapper, createTweetStreamParameters)
 {
     _client    = client;
     _factories = factories;
 }