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;
                }
            });
        }
Beispiel #2
0
 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>();
        }
Beispiel #5
0
 public ListController(AppDbContext appDbContext, ITraktService traktService, UserManager <User> userManager, IBackgroundJobQueueService backgroundJobQueueService, LimitConfigurationList limitConfigurationList)
 {
     _appDbContext = appDbContext;
     _traktService = traktService;
     _userManager  = userManager;
     _backgroundJobQueueService = backgroundJobQueueService;
     _limitConfigurationList    = limitConfigurationList;
 }
Beispiel #6
0
 /// <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();
 }
Beispiel #7
0
 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;
 }
Beispiel #8
0
        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;
            });
        }
Beispiel #9
0
 /// <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;
 }
Beispiel #10
0
 public HomeController(ITraktService traktService, ToplistConfiguration toplistConfiguration)
 {
     _traktService         = traktService;
     _toplistConfiguration = toplistConfiguration;
 }
Beispiel #11
0
 public LoginService(IStorageService storageService, ITraktService traktService)
 {
     this.storageService = storageService;
     this.traktService = traktService;
 }
Beispiel #12
0
 public MainPageViewModel(ITraktService traktService, INavigationService navigationService)
 {
     this.traktService      = traktService;
     this.navigationService = navigationService;
 }
Beispiel #13
0
 public MainViewModel(ITraktService traktService)
 {
     this.traktService = traktService;
 }
 public SearchResultsPageViewModel(ITraktService traktService, INavigationService navigationService, IStorageService storageService)
 {
     NavigationService   = navigationService;
     this.storageService = storageService;
     this.traktService   = traktService;
 }
Beispiel #15
0
 public ProcessMovieListBackgroundJob(ITraktService traktService, TraktAPIConfiguration traktApiConfiguration, ITraktListRepository traktRepository)
 {
     _traktService          = traktService;
     _traktRepository       = traktRepository;
     _traktApiConfiguration = traktApiConfiguration;
 }
Beispiel #16
0
 public ProcessListsRecurringJob(ITraktService traktService)
 {
     _traktService = traktService;
 }
Beispiel #17
0
 public LoginService(IStorageService storageService, ITraktService traktService)
 {
     this.storageService = storageService;
     this.traktService   = traktService;
 }
 public ProcessDonorListsRecurringJob(ITraktService traktService, LimitConfigurationList limitConfigurationList, IBackgroundJobQueueService backgroundJobQueueService)
 {
     _traktService              = traktService;
     _limitConfigurationList    = limitConfigurationList;
     _backgroundJobQueueService = backgroundJobQueueService;
 }
Beispiel #19
0
 public MainViewModel(ITraktService traktService)
 {
     this.traktService = traktService;
 }
 public ProcessMovieListBackgroundJob(ITraktService traktService)
 {
     _traktService = traktService;
 }
Beispiel #21
0
 public TVShowPageViewModel(INavigationService navigationService, ITraktService traktService)
 {
     this.navigationService = navigationService;
     this.traktService      = traktService;
 }
Beispiel #22
0
 public LoginViewModel(ITraktService traktService, INavigator navigator)
 {
     this.navigator    = navigator;
     this.traktService = traktService;
 }
Beispiel #23
0
 public SeasonPageViewModel(INavigationService navigationService, ITraktService traktService)
 {
     this.navigationService = navigationService;
     this.traktService = traktService;
 }
Beispiel #24
0
 public EnforceListLimitRecurringJob(AppDbContext appDbContext, LimitConfigurationList limitConfigurationList, ITraktService traktService)
 {
     _appDbContext           = appDbContext;
     _limitConfigurationList = limitConfigurationList;
     _traktService           = traktService;
 }
 public ProcessShowListBackgroundJob(ITraktService traktService)
 {
     this.traktService = traktService;
 }
Beispiel #26
0
		public LoginViewModel(IOAuthBrokerService oauthService, ITraktService traktService, ILoginService loginService)
		{
			this.oauthService = oauthService;
			this.traktService = traktService;
			this.loginService = loginService;
		}
Beispiel #27
0
 public LoginViewModel(IOAuthBrokerService oauthService, ITraktService traktService, ILoginService loginService)
 {
     this.oauthService = oauthService;
     this.traktService = traktService;
     this.loginService = loginService;
 }
Beispiel #28
0
 public Trakt(ITraktService traktService, INotificationRepository notificationRepository, Logger logger)
 {
     _traktService           = traktService;
     _notificationRepository = notificationRepository;
     _logger = logger;
 }
Beispiel #29
0
		public LoginViewModel(ITraktService traktService, INavigator navigator)
		{
			this.navigator = navigator;
			this.traktService = traktService;
		}
 public SearchResultsPageViewModel(ITraktService traktService, INavigationService navigationService, IStorageService storageService)
 {
     NavigationService = navigationService;
     this.storageService = storageService;
     this.traktService = traktService;
 }