Пример #1
0
 public OAuthWebRequestGenerator(
     IWebHelper webHelper,
     ITweetinviSettingsAccessor tweetinviSettingsAccessor)
 {
     _webHelper = webHelper;
     _tweetinviSettingsAccessor = tweetinviSettingsAccessor;
 }
Пример #2
0
 public TwitterQueryFactory(
     IFactory<ITwitterQuery> twitterQueryFactory,
     ITweetinviSettingsAccessor tweetinviSettingsAccessor)
 {
     _twitterQueryFactory = twitterQueryFactory;
     _tweetinviSettingsAccessor = tweetinviSettingsAccessor;
 }
Пример #3
0
 public TwitterQueryFactory(
     IFactory <ITwitterQuery> twitterQueryFactory,
     ITweetinviSettingsAccessor tweetinviSettingsAccessor)
 {
     _twitterQueryFactory       = twitterQueryFactory;
     _tweetinviSettingsAccessor = tweetinviSettingsAccessor;
 }
 public OAuthWebRequestGenerator(
     IWebHelper webHelper,
     ITweetinviSettingsAccessor tweetinviSettingsAccessor)
 {
     _webHelper = webHelper;
     _tweetinviSettingsAccessor = tweetinviSettingsAccessor;
 }
Пример #5
0
 public TwitterQueryFactory(
     IFactory <ITwitterQuery> twitterQueryFactory,
     ITweetinviSettingsAccessor tweetinviSettingsAccessor,
     ICredentialsAccessor credentialsAccessor)
 {
     _twitterQueryFactory       = twitterQueryFactory;
     _tweetinviSettingsAccessor = tweetinviSettingsAccessor;
     _credentialsAccessor       = credentialsAccessor;
 }
 public OAuthWebRequestGenerator(
     IWebHelper webHelper,
     ITweetinviSettingsAccessor tweetinviSettingsAccessor,
     ITwitterStringFormatter twitterStringFormatter)
 {
     _webHelper = webHelper;
     _tweetinviSettingsAccessor = tweetinviSettingsAccessor;
     _twitterStringFormatter = twitterStringFormatter;
 }
 public TwitterQueryFactory(
     IFactory<ITwitterQuery> twitterQueryFactory,
     ITweetinviSettingsAccessor tweetinviSettingsAccessor,
     ICredentialsAccessor credentialsAccessor)
 {
     _twitterQueryFactory = twitterQueryFactory;
     _tweetinviSettingsAccessor = tweetinviSettingsAccessor;
     _credentialsAccessor = credentialsAccessor;
 }
Пример #8
0
 public OAuthWebRequestGenerator(
     IWebHelper webHelper,
     ITweetinviSettingsAccessor tweetinviSettingsAccessor,
     ITwitterStringFormatter twitterStringFormatter)
 {
     _webHelper = webHelper;
     _tweetinviSettingsAccessor = tweetinviSettingsAccessor;
     _twitterStringFormatter    = twitterStringFormatter;
 }
Пример #9
0
 public SearchQueryGenerator(
     ISearchQueryValidator searchQueryValidator,
     IQueryParameterGenerator queryParameterGenerator,
     ITweetinviSettingsAccessor tweetinviSettingsAccessor,
     ISearchQueryParameterGenerator searchQueryParameterGenerator)
 {
     _searchQueryValidator          = searchQueryValidator;
     _queryParameterGenerator       = queryParameterGenerator;
     _tweetinviSettingsAccessor     = tweetinviSettingsAccessor;
     _searchQueryParameterGenerator = searchQueryParameterGenerator;
 }
 public TwitterRequestGenerator(
     IOAuthWebRequestGenerator webRequestGenerator,
     ICredentialsAccessor credentialsAccessor,
     IWebHelper webHelper,
     ITweetinviSettingsAccessor tweetinviSettingsAccessor)
 {
     _webRequestGenerator       = webRequestGenerator;
     _credentialsAccessor       = credentialsAccessor;
     _webHelper                 = webHelper;
     _tweetinviSettingsAccessor = tweetinviSettingsAccessor;
 }
Пример #11
0
 public UserQueryGenerator(
     IUserQueryParameterGenerator userQueryParameterGenerator,
     IQueryParameterGenerator queryParameterGenerator,
     ITweetinviSettingsAccessor tweetinviSettingsAccessor,
     IUserQueryValidator userQueryValidator)
 {
     _userQueryParameterGenerator = userQueryParameterGenerator;
     _queryParameterGenerator     = queryParameterGenerator;
     _tweetinviSettingsAccessor   = tweetinviSettingsAccessor;
     _userQueryValidator          = userQueryValidator;
 }
Пример #12
0
 public TweetWithSearchMetadata(
     ITweetWithSearchMetadataDTO tweetDTO,
     ITweetController tweetController,
     ITweetFactory tweetFactory,
     IUserFactory userFactory,
     ITaskFactory taskFactory,
     ITweetinviSettingsAccessor tweetinviSettingsAccessor)
     : base(tweetDTO, null, tweetController, tweetFactory, userFactory, taskFactory, tweetinviSettingsAccessor)
 {
     _tweetWithSearchMetadataDTO = tweetDTO;
 }
Пример #13
0
 public TweetQueryGenerator(
     IQueryParameterGenerator queryParameterGenerator,
     ITweetQueryValidator tweetQueryValidator,
     ITweetinviSettingsAccessor tweetinviSettingsAccessor,
     ITwitterStringFormatter twitterStringFormatter)
 {
     _queryParameterGenerator = queryParameterGenerator;
     _tweetQueryValidator = tweetQueryValidator;
     _tweetinviSettingsAccessor = tweetinviSettingsAccessor;
     _twitterStringFormatter = twitterStringFormatter;
 }
 public TwitterRequestGenerator(
     IOAuthWebRequestGenerator webRequestGenerator,
     ICredentialsAccessor credentialsAccessor,
     IWebHelper webHelper,
     ITweetinviSettingsAccessor tweetinviSettingsAccessor)
 {
     _webRequestGenerator = webRequestGenerator;
     _credentialsAccessor = credentialsAccessor;
     _webHelper = webHelper;
     _tweetinviSettingsAccessor = tweetinviSettingsAccessor;
 }
Пример #15
0
 public SearchQueryGenerator(
     ISearchQueryValidator searchQueryValidator,
     IQueryParameterGenerator queryParameterGenerator,
     ITweetinviSettingsAccessor tweetinviSettingsAccessor,
     ISearchQueryParameterGenerator searchQueryParameterGenerator)
 {
     _searchQueryValidator = searchQueryValidator;
     _queryParameterGenerator = queryParameterGenerator;
     _tweetinviSettingsAccessor = tweetinviSettingsAccessor;
     _searchQueryParameterGenerator = searchQueryParameterGenerator;
 }
Пример #16
0
 public TweetQueryGenerator(
     IQueryParameterGenerator queryParameterGenerator,
     ITweetQueryValidator tweetQueryValidator,
     ITweetinviSettingsAccessor tweetinviSettingsAccessor,
     ITwitterStringFormatter twitterStringFormatter)
 {
     _queryParameterGenerator   = queryParameterGenerator;
     _tweetQueryValidator       = tweetQueryValidator;
     _tweetinviSettingsAccessor = tweetinviSettingsAccessor;
     _twitterStringFormatter    = twitterStringFormatter;
 }
Пример #17
0
 public TwitterListQueryGenerator(
     ITwitterListQueryValidator listsQueryValidator,
     IUserQueryParameterGenerator userQueryParameterGenerator,
     IUserQueryValidator userQueryValidator,
     IQueryParameterGenerator queryParameterGenerator,
     ITweetinviSettingsAccessor tweetinviSettingsAccessor,
     ITwitterListQueryParameterGenerator twitterListQueryParameterGenerator)
 {
     _listsQueryValidator                = listsQueryValidator;
     _userQueryParameterGenerator        = userQueryParameterGenerator;
     _userQueryValidator                 = userQueryValidator;
     _queryParameterGenerator            = queryParameterGenerator;
     _tweetinviSettingsAccessor          = tweetinviSettingsAccessor;
     _twitterListQueryParameterGenerator = twitterListQueryParameterGenerator;
 }
Пример #18
0
 public TwitterRequestHandler(
     ITweetinviEvents tweetinviEvents,
     IRateLimitAwaiter rateLimitAwaiter,
     IRateLimitUpdater rateLimitUpdater,
     ITwitterRequester twitterRequester,
     ICredentialsAccessor credentialsAccessor,
     ITweetinviSettingsAccessor tweetinviSettingsAccessor,
     ITwitterQueryFactory twitterQueryFactory)
 {
     _tweetinviEvents           = tweetinviEvents;
     _rateLimitAwaiter          = rateLimitAwaiter;
     _rateLimitUpdater          = rateLimitUpdater;
     _twitterRequester          = twitterRequester;
     _credentialsAccessor       = credentialsAccessor;
     _tweetinviSettingsAccessor = tweetinviSettingsAccessor;
     _twitterQueryFactory       = twitterQueryFactory;
 }
 public TwitterRequestHandler(
     ITweetinviEvents tweetinviEvents,
     IRateLimitAwaiter rateLimitAwaiter,
     IRateLimitUpdater rateLimitUpdater,
     ITwitterRequester twitterRequester,
     ICredentialsAccessor credentialsAccessor,
     ITweetinviSettingsAccessor tweetinviSettingsAccessor,
     ITwitterQueryFactory twitterQueryFactory)
 {
     _tweetinviEvents = tweetinviEvents;
     _rateLimitAwaiter = rateLimitAwaiter;
     _rateLimitUpdater = rateLimitUpdater;
     _twitterRequester = twitterRequester;
     _credentialsAccessor = credentialsAccessor;
     _tweetinviSettingsAccessor = tweetinviSettingsAccessor;
     _twitterQueryFactory = twitterQueryFactory;
 }
Пример #20
0
 public TweetFactory(
     ITweetFactoryQueryExecutor tweetDTOFactory,
     IFactory <ITweet> tweetUnityFactory,
     IFactory <ITweetWithSearchMetadata> tweetWithSearchMetadataFactory,
     IFactory <IMention> mentionFactory,
     IFactory <IOEmbedTweet> oembedTweetUnityFactory,
     IJsonObjectConverter jsonObjectConverter,
     ITweetinviSettingsAccessor tweetinviSettingsAccessor)
 {
     _tweetDTOFactory   = tweetDTOFactory;
     _tweetUnityFactory = tweetUnityFactory;
     _tweetWithSearchMetadataFactory = tweetWithSearchMetadataFactory;
     _mentionUnityFactory            = mentionFactory;
     _oembedTweetUnityFactory        = oembedTweetUnityFactory;
     _jsonObjectConverter            = jsonObjectConverter;
     _tweetinviSettingsAccessor      = tweetinviSettingsAccessor;
 }
Пример #21
0
        public Mention(
            ITweetDTO tweetDTO,
            ITweetController tweetController,
            ITweetFactory tweetFactory,
            IUserFactory userFactory,
            ITaskFactory taskFactory,
            ITweetinviSettingsAccessor tweetinviSettingsAccessor)

            : base(tweetDTO,
                   null,
                   tweetController,
                   tweetFactory,
                   userFactory,
                   taskFactory,
                   tweetinviSettingsAccessor)
        {
            // Default constructor inheriting from the default Tweet constructor
        }
Пример #22
0
        public Tweet(
            ITweetDTO tweetDTO,
            TweetMode?tweetMode,
            ITweetController tweetController,
            ITweetFactory tweetFactory,
            IUserFactory userFactory,
            ITaskFactory taskFactory,
            ITweetinviSettingsAccessor tweetinviSettingsAccessor)
        {
            _tweetController = tweetController;
            _tweetFactory    = tweetFactory;
            _userFactory     = userFactory;
            _taskFactory     = taskFactory;

            // IMPORTANT: POSITION MATTERS! Look line below!
            TweetMode = tweetMode ?? tweetinviSettingsAccessor?.CurrentThreadSettings?.TweetMode ?? TweetMode.Compat;

            // IMPORTANT: Make sure that the TweetDTO is set up after the TweetMode because it uses the TweetMode to initialize the Entities
            TweetDTO = tweetDTO;
        }
Пример #23
0
 public TwitterRequestHandler(
     ITweetinviEvents tweetinviEvents,
     IRateLimitAwaiter rateLimitAwaiter,
     IRateLimitUpdater rateLimitUpdater,
     IRateLimitCacheManager rateLimitCacheManager,
     IWebRequestExecutor webRequestExecutor,
     ICredentialsAccessor credentialsAccessor,
     ITweetinviSettingsAccessor tweetinviSettingsAccessor,
     ITwitterQueryFactory twitterQueryFactory,
     IOAuthWebRequestGenerator oAuthWebRequestGenerator)
 {
     _tweetinviEvents           = tweetinviEvents;
     _rateLimitAwaiter          = rateLimitAwaiter;
     _rateLimitUpdater          = rateLimitUpdater;
     _rateLimitCacheManager     = rateLimitCacheManager;
     _webRequestExecutor        = webRequestExecutor;
     _credentialsAccessor       = credentialsAccessor;
     _tweetinviSettingsAccessor = tweetinviSettingsAccessor;
     _twitterQueryFactory       = twitterQueryFactory;
     _oAuthWebRequestGenerator  = oAuthWebRequestGenerator;
 }
 public MultipartWebRequest(HttpWebRequest httpWebRequest, byte[] content, ITweetinviSettingsAccessor tweetinviSettingsAccessor)
 {
     _tweetinviSettingsAccessor = tweetinviSettingsAccessor;
     WebRequest = httpWebRequest;
     Content = content;
 }
 public TwitterTimeoutException(ITweetinviSettingsAccessor tweetinviSettingsAccessor, string url) : base(url, string.Format("{0} web request timed out.", url))
 {
     TwitterDescription = string.Format("Twitter was not able to perform your query within the Timeout limit of {0} ms.", tweetinviSettingsAccessor.WebRequestTimeout);
     CreationDate = DateTime.Now;
 }
Пример #26
0
 static TweetinviConfig()
 {
     _currentSettingsAccessor = TweetinviContainer.Resolve <ITweetinviSettingsAccessor>();
 }
Пример #27
0
 static TweetinviConfig()
 {
     _currentSettingsAccessor = TweetinviContainer.Resolve<ITweetinviSettingsAccessor>();
     _currentSettingsAccessor.CurrentThreadSettings = TweetinviContainer.Resolve<ITweetinviSettings>();
 }
Пример #28
0
 public WebHelper(ITweetinviSettingsAccessor tweetinviSettingsAccessor)
 {
     _tweetinviSettingsAccessor = tweetinviSettingsAccessor;
 }
 public MultipartWebRequest(HttpWebRequest httpWebRequest, byte[] content, ITweetinviSettingsAccessor tweetinviSettingsAccessor)
 {
     _tweetinviSettingsAccessor = tweetinviSettingsAccessor;
     WebRequest = httpWebRequest;
     Content    = content;
 }
Пример #30
0
 public HttpClientWebHelper(ITweetinviSettingsAccessor tweetinviSettingsAccessor)
 {
     _tweetinviSettingsAccessor = tweetinviSettingsAccessor;
 }
Пример #31
0
 public TwitterTimeoutException(ITweetinviSettingsAccessor tweetinviSettingsAccessor, string url) : base(url, string.Format("{0} web request timed out.", url))
 {
     TwitterDescription = string.Format("Twitter was not able to perform your query within the Timeout limit of {0} ms.", tweetinviSettingsAccessor.WebRequestTimeout);
     CreationDate       = DateTime.Now;
 }
Пример #32
0
 public HttpClientWebHelper(ITweetinviSettingsAccessor tweetinviSettingsAccessor)
 {
     _tweetinviSettingsAccessor = tweetinviSettingsAccessor;
 }
Пример #33
0
 public WebHelper(ITweetinviSettingsAccessor tweetinviSettingsAccessor)
 {
     _tweetinviSettingsAccessor = tweetinviSettingsAccessor;
 }