Exemple #1
0
        public async Task <ChannelVideoResponse> GetChannelVideo(string channelId, int page)
        {
            await WaitNicoPageAccess();

            ChannelVideoResponse res = null;

            using (var releaser = await _NicoPageAccessLock.LockAsync())
            {
                res = await Context.Channel.GetChannelVideosAsync(channelId, page);
            }

            return(res);
        }
Exemple #2
0
        protected override async Task <int> ResetSourceImpl()
        {
            _FirstResponse = await ChannelProvider.GetChannelVideo(ChannelId, 0);

            return(_FirstResponse?.TotalCount ?? 0);
        }