//private readonly UserManager<ApplicationUser> _userManager; public TwitterDataController(ITweetDataService tweetDataService, ISaveThreadRepository saveThreadRepository ) { _tweetDataService = tweetDataService; _saveThreadRepository = saveThreadRepository; //_userManager = userManager; }
public LiveUsersViewModel(IEventAggregator eventAggregator, ITweetDataService dataService) { _eventAggregator = eventAggregator; UserModelList = dataService.GetLoginUsers()? .Select(x => new UserModel(x)) .OrderBy(x => x.ScreenName) .ToList() ?? new List <UserModel>(); eventAggregator.GetEvent <SelectSavedUserEvent>().Subscribe(SavedUserSelectedEventReceived); }
public LiveTweetsViewModel(IEventAggregator eventAggregator, ITweetDataService dataService) { _dataService = dataService; eventAggregator.GetEvent <SelectLiveUserEvent>().Subscribe(LiveUserSelectedEventReceived); SaveUserTweetCommand = new DelegateCommand <TweetModel>(ExecuteSaveUserTweetCommand); }
public SavedUsersViewModel(IEventAggregator eventAggregator, ITweetDataService dataService) { _eventAggregator = eventAggregator; _dataService = dataService; _eventAggregator.GetEvent <SelectLiveUserEvent>().Subscribe(LiveUserSelectedEventReceived); }