Пример #1
0
        public Task <object> Get(GetInstantMixFromMusicGenreId request)
        {
            var item = _libraryManager.GetItemById(request.Id);

            var user = _userManager.GetUserById(request.UserId);

            var items = _musicManager.GetInstantMixFromItem(item, user);

            return(GetResult(items, user, request));
        }
Пример #2
0
        public object Get(GetInstantMixFromMusicGenreId request)
        {
            var item = (MusicGenre)_libraryManager.GetItemById(request.Id);

            var user = _userManager.GetUserById(request.UserId.Value);

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

            return GetResult(items, user, request);
        }
Пример #3
0
        public object Get(GetInstantMixFromMusicGenreId request)
        {
            var item = (MusicGenre)_libraryManager.GetItemById(request.Id);

            var user = _userManager.GetUserById(request.UserId.Value);

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

            return(GetResult(items, user, request));
        }
Пример #4
0
        public object Get(GetInstantMixFromMusicGenreId request)
        {
            var item = _libraryManager.GetItemById(request.Id);

            var user = _userManager.GetUserById(request.UserId);

            var items = _musicManager.GetInstantMixFromItem(item, user);

            return GetResult(items, user, request);
        }
Пример #5
0
        public Task <object> Get(GetInstantMixFromMusicGenreId request)
        {
            var item = _libraryManager.GetItemById(request.Id);

            var user = _userManager.GetUserById(request.UserId);

            var dtoOptions = GetDtoOptions(_authContext, request);

            var items = _musicManager.GetInstantMixFromItem(item, user, dtoOptions);

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