Ejemplo n.º 1
0
        public Task <object> Get(GetInstantMixFromMusicGenre request)
        {
            var user = _userManager.GetUserById(request.UserId);

            var items = _musicManager.GetInstantMixFromGenres(new[] { request.Name }, user);

            return(GetResult(items, user, request));
        }
Ejemplo n.º 2
0
        public object Get(GetInstantMixFromMusicGenre request)
        {
            var genre = GetMusicGenre(request.Name, _libraryManager);

            var result = GetInstantMixResult(request, new[] { genre.Name });

            return(ToOptimizedSerializedResultUsingCache(result));
        }
Ejemplo n.º 3
0
        public object Get(GetInstantMixFromMusicGenre request)
        {
            var user = _userManager.GetUserById(request.UserId.Value);

            var items = _musicManager.GetInstantMixFromGenres(new[] { request.Name }, user);

            return GetResult(items, user, request);
        }
Ejemplo n.º 4
0
        public object Get(GetInstantMixFromMusicGenre request)
        {
            var genre = GetMusicGenre(request.Name, _libraryManager);

            var result = GetInstantMixResult(request, new[] { genre.Name });

            return ToOptimizedSerializedResultUsingCache(result);
        }
Ejemplo n.º 5
0
        public Task <object> Get(GetInstantMixFromMusicGenre request)
        {
            var user = _userManager.GetUserById(request.UserId);

            var dtoOptions = GetDtoOptions(_authContext, request);

            var items = _musicManager.GetInstantMixFromGenres(new[] { request.Name }, user, dtoOptions);

            return(GetResult(items, user, request, dtoOptions));
        }