コード例 #1
0
        public LoggedUser(
            IUserDTO userDTO,
            ICredentialsAccessor credentialsAccessor,
            ITimelineController timelineController,
            ITweetController tweetController,
            ITweetFactory tweetFactory,
            IUserController userController,
            IMessageController messageController,
            IFriendshipFactory friendshipFactory,
            IFriendshipController friendshipController,
            IAccountController accountController,
            ISavedSearchController savedSearchController)

            : base(userDTO, timelineController, userController, friendshipFactory)
        {
            _credentialsAccessor   = credentialsAccessor;
            _tweetController       = tweetController;
            _tweetFactory          = tweetFactory;
            _messageController     = messageController;
            _friendshipController  = friendshipController;
            _accountController     = accountController;
            _savedSearchController = savedSearchController;

            Credentials = _credentialsAccessor.CurrentThreadCredentials;
        }
コード例 #2
0
        public AuthenticatedUser(
            IUserDTO userDTO,
            ICredentialsAccessor credentialsAccessor,
            ITimelineController timelineController,
            ITweetController tweetController,
            IUserController userController,
            IMessageController messageController,
            IFriendshipController friendshipController,
            IAccountController accountController,
            ITwitterListController twitterListController,
            ISavedSearchController savedSearchController,
            ITaskFactory taskFactory)

            : base(userDTO, userController, timelineController, friendshipController, twitterListController, taskFactory)
        {
            _credentialsAccessor   = credentialsAccessor;
            _tweetController       = tweetController;
            _messageController     = messageController;
            _friendshipController  = friendshipController;
            _accountController     = accountController;
            _twitterListController = twitterListController;
            _savedSearchController = savedSearchController;

            Credentials = _credentialsAccessor.CurrentThreadCredentials;
        }
コード例 #3
0
 public TweetsRequester(
     ITwitterClient client,
     ITwitterClientEvents clientEvents,
     ITweetController tweetController,
     ITweetsClientRequiredParametersValidator tweetsClientRequiredParametersValidator)
     : base(client, clientEvents)
 {
     _tweetController = tweetController;
     _tweetsClientRequiredParametersValidator = tweetsClientRequiredParametersValidator;
 }
コード例 #4
0
 public TweetWithSearchMetadata(
     ITweetWithSearchMetadataDTO tweetDTO, 
     ITweetController tweetController, 
     ITweetFactory tweetFactory, 
     IUserFactory userFactory, 
     ITaskFactory taskFactory) 
     : base(tweetDTO, tweetController, tweetFactory, userFactory, taskFactory)
 {
     _tweetWithSearchMetadataDTO = tweetDTO;
 }
コード例 #5
0
 public TweetWithSearchMetadata(
     ITweetWithSearchMetadataDTO tweetDTO,
     ITweetController tweetController,
     ITweetFactory tweetFactory,
     IUserFactory userFactory,
     ITaskFactory taskFactory)
     : base(tweetDTO, tweetController, tweetFactory, userFactory, taskFactory)
 {
     _tweetWithSearchMetadataDTO = tweetDTO;
 }
コード例 #6
0
 public MentionViewModel(
     IEventAggregator eventAggregator,
     ILanguageHelper languageHelper,
     IEnumerable <Lazy <ITweetController, OAuthTypeMetadata> > statusControllers,
     IEnumerable <Lazy <IUserController, OAuthTypeMetadata> > userControllers)
     : base(eventAggregator, languageHelper)
 {
     statusController = statusControllers.Single(c => c.Metadata.OAuthType == App.UserSetting.OAuthSetting.OAuthSettingType).Value;
     userController   = userControllers.Single(c => c.Metadata.OAuthType == App.UserSetting.OAuthSetting.OAuthSettingType).Value;
 }
コード例 #7
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;
 }
コード例 #8
0
ファイル: Tweet.cs プロジェクト: subhankars/tweetyzard
        public Tweet(
            ITweetDTO tweetDTO,
            ITweetController tweetController,
            ITweetFactory tweetFactory,
            IUserFactory userFactory)
        {
            _tweetController = tweetController;
            _tweetFactory    = tweetFactory;
            _userFactory     = userFactory;

            TweetDTO = tweetDTO;
        }
コード例 #9
0
ファイル: Mention.cs プロジェクト: subhankars/tweetyzard
        public Mention(
            ITweetDTO tweetDTO,
            ITweetController tweetController,
            ITweetFactory tweetFactory,
            IUserFactory userFactory)

            : base(tweetDTO,
                   tweetController,
                   tweetFactory,
                   userFactory)
        {
            // Default constructor inheriting from the default Tweet constructor
        }
コード例 #10
0
 public TweetJsonController(
     IUploadQueryExecutor uploadQueryExecutor,
     ITweetQueryGenerator tweetQueryGenerator,
     ITwitterAccessor twitterAccessor,
     ITweetQueryValidator tweetQueryValidator,
     ITweetController tweetController)
 {
     _uploadQueryExecutor = uploadQueryExecutor;
     _tweetQueryGenerator = tweetQueryGenerator;
     _twitterAccessor     = twitterAccessor;
     _tweetQueryValidator = tweetQueryValidator;
     _tweetController     = tweetController;
 }
コード例 #11
0
 public TweetJsonController(
     IUploadQueryExecutor uploadQueryExecutor,
     ITweetQueryGenerator tweetQueryGenerator,
     ITwitterAccessor twitterAccessor,
     ITweetQueryValidator tweetQueryValidator,
     ITweetController tweetController)
 {
     _uploadQueryExecutor = uploadQueryExecutor;
     _tweetQueryGenerator = tweetQueryGenerator;
     _twitterAccessor = twitterAccessor;
     _tweetQueryValidator = tweetQueryValidator;
     _tweetController = tweetController;
 }
コード例 #12
0
 public Mention(
     ITweetDTO tweetDTO,
     ITweetController tweetController,
     ITweetFactory tweetFactory,
     IUserFactory userFactory,
     ITaskFactory taskFactory)
     : base(tweetDTO,
                tweetController,
                tweetFactory,
                userFactory,
                taskFactory)
 {
     // Default constructor inheriting from the default Tweet constructor
 }
コード例 #13
0
ファイル: Tweet.cs プロジェクト: onedeadear/tweetinvi
        public Tweet(
            ITweetDTO tweetDTO,
            ITweetController tweetController,
            ITweetFactory tweetFactory,
            IUserFactory userFactory,
            ITaskFactory taskFactory,
            IFactory <IMedia> mediaFactory)
        {
            _tweetController = tweetController;
            _tweetFactory    = tweetFactory;
            _userFactory     = userFactory;
            _taskFactory     = taskFactory;
            _mediaFactory    = mediaFactory;

            TweetDTO = tweetDTO;
        }
コード例 #14
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
        }
コード例 #15
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;
        }
コード例 #16
0
 private static void Initialize()
 {
     _tweetController = TweetinviContainer.Resolve <ITweetController>();
     _tweetFactory    = TweetinviContainer.Resolve <ITweetFactory>();
 }
コード例 #17
0
ファイル: Tweet.cs プロジェクト: rudiv/tweetinvi
 private static void Initialize()
 {
     _tweetController = TweetinviContainer.Resolve<ITweetController>();
     _tweetFactory = TweetinviContainer.Resolve<ITweetFactory>();
 }
コード例 #18
0
ファイル: Tweet.cs プロジェクト: Murtaza-libs/tweetinvi
        public Tweet(
            ITweetDTO tweetDTO,
            ITweetController tweetController,
            ITweetFactory tweetFactory,
            IUserFactory userFactory,
            ITaskFactory taskFactory,
            IFactory<IMedia> mediaFactory)
        {
            _tweetController = tweetController;
            _tweetFactory = tweetFactory;
            _userFactory = userFactory;
            _taskFactory = taskFactory;
            _mediaFactory = mediaFactory;

            TweetDTO = tweetDTO;
        }