예제 #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));
        }
예제 #2
0
        public object Get(GetInstantMixFromMusicGenre request)
        {
            var genre = GetMusicGenre(request.Name, _libraryManager);

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

            return(ToOptimizedSerializedResultUsingCache(result));
        }
예제 #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);
        }
예제 #4
0
        public object Get(GetInstantMixFromMusicGenre request)
        {
            var genre = GetMusicGenre(request.Name, _libraryManager);

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

            return ToOptimizedSerializedResultUsingCache(result);
        }
예제 #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));
        }