Ejemplo n.º 1
0
        public SeasonPageViewModel(IAppService appService, ISeasonApiService seasonService, IAnimeApiService animeService) : base(appService)
        {
            _seasonService = seasonService;
            _animeService  = animeService;

            RefreshDataCommand = new DelegateCommand(async() => await ExecuteRefreshDataCommandAsync());
            SelectAnimeCommand = new DelegateCommand <Anime>(async(anime) => await ExecuteSelectAnimeCommandAsync(anime));
        }
Ejemplo n.º 2
0
        public VideoListPageViewModel(IAppService appService, ISeasonApiService seasonService, IAnimeApiService animeService) : base(appService)
        {
            _seasonService = seasonService;
            _animeService  = animeService;

            RefreshDataCommand  = new DelegateCommand(async() => await ExecuteRefreshDataCommandAsync());
            SelectAnimeCommand  = new DelegateCommand <Anime>(async(anime) => await ExecuteSelectAnimeCommandAsync(anime));
            SelectSeasonCommand = new DelegateCommand <Season>(async(season) => {
                await PopupNavigation.PushAsync(new SeasonPage(season));
            });
            PlayVideoCommand = new DelegateCommand(async() => await ExecutePlayVideoCommandAsync());
        }
        public VideoPlayerPageViewModel(IAppService appService, IAppDataStorage appDataStorage, IAnimeApiService animeService, ISeasonApiService seasonService) : base(appService)
        {
            SelectAnimeCommand  = new DelegateCommand <Anime>((anime) => Anime = anime);
            SelectSeasonCommand = new DelegateCommand <Season>(async(season) => {
                await PopupNavigation.PushAsync(new SeasonPage(season));
            });

            VideoInfoProperties.AddRange(new List <InfoProperty>()
            {
                new InfoProperty()
                {
                    PropertyName  = "Đạo diễn",
                    PropertyValue = "Takuji Suzuki, Shinobu Yaguchi"
                },
                new InfoProperty()
                {
                    PropertyName  = "Biên tập",
                    PropertyValue = "Takuji Suzuki, Shinobu Yaguchi"
                },
                new InfoProperty()
                {
                    PropertyName  = "Diễn viên",
                    PropertyValue = " Travis Mullenix, Satoru Jitsunashi, Jason C. Kane, Masumi Kuichi, Nao Nekota, Yôji Tanaka"
                },
                new InfoProperty()
                {
                    PropertyName  = "Quay phim",
                    PropertyValue = "Shinobu Yaguchi	"
                },
                new InfoProperty()
                {
                    PropertyName  = "Biên tập phim",
                    PropertyValue = "Shinobu Yaguchi	"
                },
                new InfoProperty()
                {
                    PropertyName  = "Âm thanh",
                    PropertyValue = "Joseph Shalack"
                },
                new InfoProperty()
                {
                    PropertyName  = "Lòng tiếng",
                    PropertyValue = "Chuck Powers"
                }
            });
            _seasonService  = seasonService;
            _animeService   = animeService;
            _appDataStorage = appDataStorage;
        }