Exemple #1
0
        protected override IIncrementalSource <RankedVideoInfoControlViewModel> GenerateIncrementalSource()
        {
            IsFailedRefreshRanking.Value = false;

            var categoryInfo = RequireCategoryInfo != null ? RequireCategoryInfo : CategoryInfo;

            IIncrementalSource <RankedVideoInfoControlViewModel> source = null;

            try
            {
                var target   = SelectedRankingTarget.Value.TargetType;
                var timeSpan = SelectedRankingTimeSpan.Value.TimeSpan;
                source = new CategoryRankingLoadingSource(HohoemaApp, PageManager, RankingCategory, target, timeSpan);

                CanChangeRankingParameter.Value = true;
            }
            catch
            {
                IsFailedRefreshRanking.Value = true;
            }


            return(source);
        }
Exemple #2
0
        protected override IIncrementalSource <RankedVideoInfoControlViewModel> GenerateIncrementalSource()
        {
            IsFailedRefreshRanking.Value = false;

            var categoryInfo = RankingCategory;

            IIncrementalSource <RankedVideoInfoControlViewModel> source = null;

            try
            {
                var target   = SelectedRankingTarget.Value;
                var timeSpan = SelectedRankingTimeSpan.Value;
                source = new CategoryRankingLoadingSource(categoryInfo, target, timeSpan, NicoVideoProvider, NgSettings);

                CanChangeRankingParameter.Value = true;
            }
            catch
            {
                IsFailedRefreshRanking.Value = true;
            }


            return(source);
        }