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)); }
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)); }
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)); }