public TraktDialogViewModel(ITraktService traktService) { _traktService = traktService; CloseCommand = new RelayCommand(() => { CloseAction.Invoke(); }); InitializeAsyncCommand = new RelayCommand(async() => { try { IsLoading = true; IsLoggedIn = await _traktService.IsLoggedIn(); TraktOAuthUrl = !IsLoggedIn ? _traktService.GetAuthorizationUrl() : string.Empty; } catch (Exception ex) { Logger.Error(ex); } finally { IsLoading = false; } }); }
public HomeController(ITraktService traktService, UserManager <IdentityUser> userManager, AppDbContext appDbContext, ToplistConfiguration toplistConfiguration) { _traktService = traktService; _userManager = userManager; _appDbContext = appDbContext; _toplistConfiguration = toplistConfiguration; }
public EpisodePageViewModel(INavigationService navigationService, ICrawlerService crawlerService, ITraktService traktService) { this.navigationService = navigationService; this.crawlerService = crawlerService; this.traktService = traktService; this.excludedLinks = new List <string>(); }
public EpisodePageViewModel(INavigationService navigationService, ICrawlerService crawlerService, ITraktService traktService) { this.navigationService = navigationService; this.crawlerService = crawlerService; this.traktService = traktService; this.excludedLinks = new List<string>(); }
public ListController(AppDbContext appDbContext, ITraktService traktService, UserManager <User> userManager, IBackgroundJobQueueService backgroundJobQueueService, LimitConfigurationList limitConfigurationList) { _appDbContext = appDbContext; _traktService = traktService; _userManager = userManager; _backgroundJobQueueService = backgroundJobQueueService; _limitConfigurationList = limitConfigurationList; }
/// <summary> /// Initializes a new instance of the ApplicationSettingsViewModel class. /// </summary> /// <param name="userService">User service</param> /// <param name="subtitlesService">Subtitles service</param> /// <param name="traktService">Trakt service</param> /// <param name="cacheService">Cache service</param> public ApplicationSettingsViewModel(IUserService userService, ISubtitlesService subtitlesService, ITraktService traktService, ICacheService cacheService, NotificationMessageManager manager) { _cacheService = cacheService; _traktService = traktService; _manager = manager; _userService = userService; _subtitlesService = subtitlesService; Version = Constants.AppVersion; RegisterCommands(); }
public ListController(UserManager <User> userManager, IBackgroundJobQueueService backgroundJobQueueService, LimitConfigurationList limitConfigurationList, ITraktListRepository traktRepository, ITraktMovieRepository traktMovieRepository, ITraktShowRepository traktShowRepository, ITraktCodeRepository traktCodesRepository, ITraktService traktService) { _userManager = userManager; _backgroundJobQueueService = backgroundJobQueueService; _limitConfigurationList = limitConfigurationList; _traktRepository = traktRepository; _traktMovieRepository = traktMovieRepository; _traktShowRepository = traktShowRepository; _traktCodesRepository = traktCodesRepository; _traktService = traktService; }
public TraktDialogViewModel() { _traktService = new TraktService(); CloseCommand = new RelayCommand(() => { CloseAction.Invoke(); }); InitializeAsyncCommand = new RelayCommand(async() => { IsLoading = true; IsLoggedIn = await _traktService.IsLoggedIn(); IsLoading = false; TraktOAuthUrl = !IsLoggedIn ? _traktService.GetAuthorizationUrl() : string.Empty; }); }
/// <summary> /// Initializes a new instance of the WindowViewModel class. /// </summary> /// <param name="applicationService">Instance of Application state</param> /// <param name="userService">Instance of movie history service</param> /// <param name="subtitlesService">Instance of subtitles service</param> /// <param name="traktService">Instance of Trakt service</param> /// <param name="popcornHubService">Instance of Popcorn Hub service</param> /// <param name="cacheService">Instance of cache service</param> /// <param name="manager">The notification manager</param> public WindowViewModel(IApplicationService applicationService, IUserService userService, ISubtitlesService subtitlesService, ITraktService traktService, IPopcornHubService popcornHubService, ICacheService cacheService, NotificationMessageManager manager) { _cacheService = cacheService; _popcornHubService = popcornHubService; _traktService = traktService; _manager = manager; _subtitlesService = subtitlesService; _userService = userService; _dialogCoordinator = DialogCoordinator.Instance; _applicationService = applicationService; RegisterMessages(); RegisterCommands(); AppDomain.CurrentDomain.UnhandledException += OnUnhandledException; }
public HomeController(ITraktService traktService, ToplistConfiguration toplistConfiguration) { _traktService = traktService; _toplistConfiguration = toplistConfiguration; }
public LoginService(IStorageService storageService, ITraktService traktService) { this.storageService = storageService; this.traktService = traktService; }
public MainPageViewModel(ITraktService traktService, INavigationService navigationService) { this.traktService = traktService; this.navigationService = navigationService; }
public MainViewModel(ITraktService traktService) { this.traktService = traktService; }
public SearchResultsPageViewModel(ITraktService traktService, INavigationService navigationService, IStorageService storageService) { NavigationService = navigationService; this.storageService = storageService; this.traktService = traktService; }
public ProcessMovieListBackgroundJob(ITraktService traktService, TraktAPIConfiguration traktApiConfiguration, ITraktListRepository traktRepository) { _traktService = traktService; _traktRepository = traktRepository; _traktApiConfiguration = traktApiConfiguration; }
public ProcessListsRecurringJob(ITraktService traktService) { _traktService = traktService; }
public ProcessDonorListsRecurringJob(ITraktService traktService, LimitConfigurationList limitConfigurationList, IBackgroundJobQueueService backgroundJobQueueService) { _traktService = traktService; _limitConfigurationList = limitConfigurationList; _backgroundJobQueueService = backgroundJobQueueService; }
public ProcessMovieListBackgroundJob(ITraktService traktService) { _traktService = traktService; }
public TVShowPageViewModel(INavigationService navigationService, ITraktService traktService) { this.navigationService = navigationService; this.traktService = traktService; }
public LoginViewModel(ITraktService traktService, INavigator navigator) { this.navigator = navigator; this.traktService = traktService; }
public SeasonPageViewModel(INavigationService navigationService, ITraktService traktService) { this.navigationService = navigationService; this.traktService = traktService; }
public EnforceListLimitRecurringJob(AppDbContext appDbContext, LimitConfigurationList limitConfigurationList, ITraktService traktService) { _appDbContext = appDbContext; _limitConfigurationList = limitConfigurationList; _traktService = traktService; }
public ProcessShowListBackgroundJob(ITraktService traktService) { this.traktService = traktService; }
public LoginViewModel(IOAuthBrokerService oauthService, ITraktService traktService, ILoginService loginService) { this.oauthService = oauthService; this.traktService = traktService; this.loginService = loginService; }
public Trakt(ITraktService traktService, INotificationRepository notificationRepository, Logger logger) { _traktService = traktService; _notificationRepository = notificationRepository; _logger = logger; }