public ActorsListViewModel(RegionManager regionManager, TheMovieDBDataService dataService, ActorService actorService)
        {
            _regionManager = regionManager;
            _dataService   = dataService;
            _actorService  = actorService;
            _logger        = LogManager.GetCurrentClassLogger();

            NotificationRequest            = new InteractionRequest <INotification>();
            NotificationRequestNull        = new InteractionRequest <INotification>();
            NavigateCommandShowDirectActor = new DelegateCommand <int?>(ShowDirectActor);
        }
        public ActorViewModel(RegionManager regionManager, TheMovieDBDataService dataService, ActorService actorService)
        {
            _regionManager = regionManager;
            _dataService   = dataService;
            _actorService  = actorService;
            _logger        = LogManager.GetCurrentClassLogger();

            NavigateCommandShowDirectMovie = new DelegateCommand(NavigateShowDirectMovie);
            NavigateCommandAddToDb         = new DelegateCommand(AddToDb);
            NavigateCommandDellFromDb      = new DelegateCommand(DelFromDb);
            NotificationRequest            = new InteractionRequest <INotification>();
        }
        public ActorSearchViewModel(RegionManager regionManager, TheMovieDBDataService dataService)
        {
            _regionManager = regionManager;
            _dataService   = dataService;
            _logger        = LogManager.GetCurrentClassLogger();

            NavigateCommandDirectActor = new DelegateCommand <Person>(DirectActor);
            NavigateCommandSearch      = new DelegateCommand <string>(Search);
            NotificationRequest        = new InteractionRequest <INotification>();
            NotificationRequestNull    = new InteractionRequest <INotification>();
            GetActorsData();
        }
        public ShowsListViewModel(RegionManager regionManager, TheMovieDBDataService dataService, ShowService showService)
        {
            _regionManager = regionManager;
            _dataService   = dataService;
            _showService   = showService;
            _logger        = LogManager.GetCurrentClassLogger();

            NavigateCommandShowDirectShow   = new DelegateCommand(NavigateShowDirectShow);
            NavigateCommandShowNextPage     = new DelegateCommand(ShowNextPage);
            NavigateCommandShowPriviousPage = new DelegateCommand(ShowPriviousPage);
            NotificationRequest             = new InteractionRequest <INotification>();
            NotificationRequestNull         = new InteractionRequest <INotification>();
        }
        public ShowViewModel(RegionManager regionManager, TheMovieDBDataService dataService, ShowService showService)
        {
            _regionManager = regionManager;
            _dataService   = dataService;
            _showService   = showService;
            _logger        = LogManager.GetCurrentClassLogger();

            NavigateCommandShowDirectActor = new DelegateCommand(NavigateShowDirectActor);
            NavigateCommandShowTrailler    = new DelegateCommand(ShowTrailler);
            NavigateCommandAddToDb         = new DelegateCommand(AddToDb);
            NavigateCommandDellFromDb      = new DelegateCommand(DelFromDb);
            NotificationRequest            = new InteractionRequest <INotification>();
        }
Exemplo n.º 6
0
        public StartViewModel(RegionManager regionManager, TheMovieDBDataService dataService)
        {
            _regionManager = regionManager;
            _dataService   = dataService;
            _logger        = LogManager.GetCurrentClassLogger();

            GetAllData();

            NavigateCommandMovie    = new DelegateCommand <Movie>(ShowDirectMovie);
            NavigateCommandShow     = new DelegateCommand <Show>(ShowDirectShow);
            NotificationRequest     = new InteractionRequest <INotification>();
            NotificationRequestNull = new InteractionRequest <INotification>();
        }
Exemplo n.º 7
0
        public MoviesListViewModel(RegionManager regionManager, TheMovieDBDataService dataService, MovieService movieService)
        {
            _regionManager = regionManager;
            _dataService   = dataService;
            _movieService  = movieService;
            _logger        = LogManager.GetCurrentClassLogger();

            NavigateCommandShowDirectMovie  = new DelegateCommand(NavigateShowDirectMovie);
            NavigateCommandShowNextPage     = new DelegateCommand(ShowNextPage);
            NavigateCommandShowPriviousPage = new DelegateCommand(ShowPriviousPage);
            NotificationRequestServer       = new InteractionRequest <INotification>();
            NotificationRequestNull         = new InteractionRequest <INotification>();

            Page  = 1;
            _best = true;
            Title = BestMovies;
            GetBestMovies(Page);
        }