Beispiel #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));
        }
Beispiel #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));
        }
Beispiel #3
0
        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));
        }