Exemplo n.º 1
0
        public object Get(GetRecommendedPrograms request)
        {
            var query = new RecommendedProgramQuery
            {
                UserId   = request.UserId,
                IsAiring = request.IsAiring,
                Limit    = request.Limit,
                HasAired = request.HasAired
            };

            var result = _liveTvManager.GetRecommendedPrograms(query, CancellationToken.None).Result;

            return(ToOptimizedSerializedResultUsingCache(result));
        }
Exemplo n.º 2
0
        public async Task <object> Get(GetRecommendedPrograms request)
        {
            var query = new RecommendedProgramQuery
            {
                UserId   = request.UserId,
                IsAiring = request.IsAiring,
                Limit    = request.Limit,
                HasAired = request.HasAired
            };

            var result = await _liveTvManager.GetRecommendedPrograms(query, CancellationToken.None).ConfigureAwait(false);

            return(ToOptimizedSerializedResultUsingCache(result));
        }
Exemplo n.º 3
0
        public async Task <object> Get(GetRecommendedPrograms request)
        {
            var query = new RecommendedProgramQuery
            {
                UserId   = request.UserId,
                IsAiring = request.IsAiring,
                Limit    = request.Limit,
                HasAired = request.HasAired,
                IsMovie  = request.IsMovie,
                IsKids   = request.IsKids,
                IsSports = request.IsSports
            };

            var result = await _liveTvManager.GetRecommendedPrograms(query, GetDtoOptions(request), CancellationToken.None).ConfigureAwait(false);

            return(ToOptimizedResult(result));
        }