コード例 #1
0
        public object Get(GetChannels request)
        {
            var result = _channelManager.GetChannels(new ChannelQuery
            {
                Limit      = request.Limit,
                StartIndex = request.StartIndex,
                UserId     = request.UserId,
            }, CancellationToken.None).Result;

            return(ToOptimizedResult(result));
        }
コード例 #2
0
        public async Task <object> Get(GetChannels request)
        {
            var result = await _channelManager.GetChannels(new ChannelQuery
            {
                Limit               = request.Limit,
                StartIndex          = request.StartIndex,
                UserId              = request.UserId,
                SupportsLatestItems = request.SupportsLatestItems,
                IsFavorite          = request.IsFavorite
            }, CancellationToken.None).ConfigureAwait(false);

            return(ToOptimizedResult(result));
        }
コード例 #3
0
ファイル: ChannelService.cs プロジェクト: zxz2020/Emby
        public object Get(GetChannels request)
        {
            var result = _channelManager.GetChannels(new ChannelQuery
            {
                Limit                 = request.Limit,
                StartIndex            = request.StartIndex,
                UserId                = request.UserId,
                SupportsLatestItems   = request.SupportsLatestItems,
                SupportsMediaDeletion = request.SupportsMediaDeletion,
                IsFavorite            = request.IsFavorite
            });

            return(ToOptimizedResult(result));
        }