public HomeController(ICategoryService categoryService, ILocationService locationService, IProjectService projectService, SiteSettings siteSettings, ISuccessStoryService successStoryService, ITweetService tweetService, IWebHelper webHelper)
 {
     _categoryService = categoryService;
     _locationService = locationService;
     _projectService = projectService;
     _siteSettings = siteSettings;
     _successStoryService = successStoryService;
     _tweetService = tweetService;
     _webHelper = webHelper;
 }
示例#2
0
        public ViewModelBase()
        {
            var container = (Application.Current.Resources["bootstrapper"] as AppBootstrapper).Container;

            this.navigationService = container.GetInstance(typeof(INavigationService), null) as INavigationService;
            this.eventAggregator = container.GetInstance(typeof(IEventAggregator), null) as IEventAggregator;
            this.storageService = container.GetInstance(typeof(IStorageService), null) as IStorageService;
            var proxy = storageService.GetCurrentProxySetting();
            if (proxy != null)
            {
                this.tweetService = container.GetInstance(typeof(ITweetService), proxy.Name) as ITweetService;
            }
            this.progressService = container.GetInstance(typeof(ProgressService), null) as ProgressService;
            this.toastMessageService = container.GetInstance(typeof(ToastMessageService), null) as ToastMessageService;

            this.languageHelper = Application.Current.Resources["LanguageHelper"] as LanguageHelper;
        }
示例#3
0
 public TweetApiController(ITweetService tweetService)
 {
     _tweetService = tweetService;
 }
 public ProfileChangedMessageHandler(ITweetService tweetService)
 {
     _tweetService = tweetService;
 }
示例#5
0
 public HomeController(IUserService userService, ITwitterService twitterService, ITweetService tweetService)
 {
     this.userService = userService ??
                        throw new ArgumentNullException(nameof(userService));
     this.twitterService = twitterService ?? throw new ArgumentNullException(nameof(twitterService));
     this.tweetService   = tweetService ?? throw new ArgumentNullException(nameof(tweetService));
 }
 public ManageController(ITweetService service)
 {
     this.service = service;
 }
示例#7
0
 public TweetController(ITweetService tweetService, IUserService userService)
 {
     _tweetService = tweetService;
     _userService  = userService;
 }
示例#8
0
 public HomeController(ITweetService service)
 {
     this.service = service;
 }
示例#9
0
        /// <summary>
        /// Get a list of dashboards, and the tweets that belong to that dashboard.
        /// </summary>
        /// <param name="dashboards">A list of dashboards.</param>
        /// <param name="tweetService">An instance of <see cref="ITweetService"/>.</param>
        /// <returns></returns>
        public static async Task <List <DashboardAndTweetsResult> > GetDashboardAndTweetsAsync(List <Dashboard> dashboards, ITweetService tweetService)
        {
            List <DashboardAndTweetsResult> dashboardAndTweets = new List <DashboardAndTweetsResult>();

            // Go through each dashboard & get the tweets.
            foreach (var dashboard in dashboards)
            {
                // Find the tweets for the dashboard.
                var tweets = await tweetService.GetByDashboardAsync(dashboard.Id);

                // Add them to the response.
                dashboardAndTweets.Add(new DashboardAndTweetsResult(dashboard, tweets));
            }

            return(dashboardAndTweets);
        }
示例#10
0
 public TweetController(ITweetService service)
 {
     _service = service;
 }
 public TwitterController()
 {
     _tweetService = new TweetService();
     _userService = new UserService();
 }
 public TweetController()
 {
     _tweetService = new TweetService();
     _userService  = new UserService();
 }
示例#13
0
 public TweetController(ITweetService tweetService) => this._tweetService = tweetService;
示例#14
0
 public HomeController(ITweetService tweets)
 {
     this.tweets = tweets;
 }
示例#15
0
 public TweetsController(ITweetService IServiceTweets)
 {
     this._IServiceTweets = IServiceTweets;
 }
 public ProfileController(IAppUserService userService, IRetweetService retweetService, ITweetService tweetService)
 {
     _userService    = userService;
     _retweetService = retweetService;
     _tweetService   = tweetService;
 }
示例#17
0
 public NewUserMessageHandler(ITweetService tweetService)
 {
     _tweetService = tweetService;
 }
 public TwitterController(IUserService userService, ITweetService tweetService)
 {
     _tweetService = tweetService;
     _userService = userService;
 }
示例#19
0
 public UsersController(ILogger <UsersController> logger, UserManager <AppUser> userManager, ITweetService tweetService)
 {
     _logger       = logger;
     _userManager  = userManager;
     _tweetService = tweetService;
 }
示例#20
0
 public TweetController(ITweetService tweetService, IUserService userService, IMapper mapper)
 {
     _tweetService = tweetService;
     _userService  = userService;
     _mapper       = mapper;
 }
示例#21
0
 public TweetController(ITweetService service, IPersonService personService)
 {
     this.service       = service;
     this.personService = personService;
 }
示例#22
0
 public ConcertsController(IConcertService concertService, ITweetService tweetService)
 {
     _concertService = concertService;
     _tweetService   = tweetService;
 }
示例#23
0
 public TweetsController(ITweetService tweetService, IMappingProvider mapper)
 {
     this.tweetService = tweetService ?? throw new ArgumentNullException(nameof(tweetService));
     this.mapper       = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }
示例#24
0
 public Seeder(IUserService userService, ITweetService tweetService)
 {
     _userService  = userService;
     _tweetService = tweetService;
 }
示例#25
0
 public AddTweetController(ITweetService tweetService, ITwitterApiService twitterApiService, UserManager <User> userManager)
 {
     this.tweetService      = tweetService;
     this.twitterApiService = twitterApiService;
     this.userManager       = userManager;
 }
示例#26
0
 public UserService(IUserDao userContext, IFollowService followContext, ITweetService tweetContext)
 {
     this.userContext = userContext;
     this.followContext = followContext;
     this.tweetContext = tweetContext;
 }
示例#27
0
 public TweetController(ITweetService tweetService)
 {
     this.tweetService = tweetService;
 }
示例#28
0
 public TweetController(ITweetService _tweetService, IUserService _userService, IFollowService _followService)
 {
     this.tweetService = _tweetService;
     this.userService = _userService;
     this.followService = _followService;
 }
示例#29
0
 public TweetsController(ITweetService service)
 {
     this.service = service;
 }
 public TweetController(ITweetService service, IMapper mapper, ILogger <TweetController> logger)
 {
     _tweetService = service;
     _mapper       = mapper;
     _logger       = logger;
 }
 public UnApproveTweetMessageHandler(ITweetService tweetService)
 {
     _tweetService = tweetService;
 }
示例#32
0
 public UsersController(IUserRepository userRepository, IMapper mapper, ITweetService tweetService)
 {
     _userRepository = userRepository;
     _mapper         = mapper;
     _tweetService   = tweetService;
 }
示例#33
0
 public TweetController(ITweetService tweetService,
                        ResolverHelper.LikeServiceResolver likeService)
 {
     _tweetService = tweetService;
     _likeService  = likeService(ConcreteLikeServiceImplementationEnum.Tweet);
 }
 public TwitterPulseController(ILogger <TwitterPulseController> logger, ITweetService datastore)
 {
     _logger    = logger;
     _datastore = datastore;
 }