Example #1
0
        public Task <object> Get(GetInstantMixFromArtistId request)
        {
            var item = _libraryManager.GetItemById(request.Id);

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

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

            return(GetResult(items, user, request));
        }
Example #2
0
        public object Get(GetInstantMixFromArtistId request)
        {
            var item = (MusicArtist)_libraryManager.GetItemById(request.Id);

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

            var items = _musicManager.GetInstantMixFromArtist(item.Name, user);

            return(GetResult(items, user, request));
        }
        public object Get(GetInstantMixFromArtistId request)
        {
            var item = (MusicArtist)_libraryManager.GetItemById(request.Id);

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

            var items = _musicManager.GetInstantMixFromArtist(item.Name, user);

            return GetResult(items, user, request);
        }
Example #4
0
        public Task <object> Get(GetInstantMixFromArtistId 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));
        }
Example #5
0
        public Task<object> Get(GetInstantMixFromArtistId request)
        {
            var item = _libraryManager.GetItemById(request.Id);

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

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

            return GetResult(items, user, request);
        }