Example #1
0
        public ISampleStream CreateSampleStream(ICreateSampleStreamParameters parameters)
        {
            parameters ??= new CreateSampleStreamParameters();
            var customRequestParameters = _sampleStreamFactory.GenerateParameterOverrideWrapper("createSampleStreamParameters", parameters);
            var stream = _sampleStreamFactory.Create(customRequestParameters);

            stream.TweetMode = parameters.TweetMode ?? _client.ClientSettings.TweetMode;
            return(stream);
        }
Example #2
0
 public SampleStream(
     ITwitterClient twitterClient,
     IStreamResultGenerator streamResultGenerator,
     IJsonObjectConverter jsonObjectConverter,
     IJObjectStaticWrapper jObjectStaticWrapper,
     ITwitterClientFactories factories,
     ICreateSampleStreamParameters createSampleStreamParameters)
     : base(
         twitterClient,
         streamResultGenerator,
         jsonObjectConverter,
         jObjectStaticWrapper,
         factories,
         createSampleStreamParameters)
 {
 }