Beispiel #1
0
        /// <summary>
        /// Fetches the top global tags on Last.fm, sorted by popularity (number of times used).
        /// </summary>
        public Task<PageResponse<LastTag>> GetTopTagsAsync()
        {
            var command = new GetTopTagsCommand(Auth)
            {
                HttpClient = HttpClient
            };

            return command.ExecuteAsync();
        }
Beispiel #2
0
        /// <summary>
        /// Fetches the top global tags on Last.fm, sorted by popularity (number of times used).
        /// </summary>
        public Task <PageResponse <LastTag> > GetTopTagsAsync()
        {
            var command = new GetTopTagsCommand(Auth)
            {
                HttpClient = HttpClient
            };

            return(command.ExecuteAsync());
        }
Beispiel #3
0
        public GetAlbumTopTagsCommandTest()
        {
            _command = new GetTopTagsCommand(MAuth.Object)
            {
                AlbumName  = "Believe",
                ArtistName = "Cher"
            };

            _command.SetParameters();
        }
        public GetAlbumTopTagsCommandTest()
        {
            _command = new GetTopTagsCommand(MAuth.Object)
            {
                AlbumName = "Believe",
                ArtistName = "Cher"
            };

            _command.SetParameters();
        }
Beispiel #5
0
        public Task<PageResponse<LastTag>> GetTopTagsAsync(string artist, bool autocorrect = false)
        {
            var command = new GetTopTagsCommand(Auth, artist)
            {
                Autocorrect = autocorrect,
                HttpClient = HttpClient
            };

            return command.ExecuteAsync();
        }
Beispiel #6
0
        /// <summary>
        /// Get a list of the most frequently used tags by Last.fm users
        /// </summary>
        /// <remarks>
        /// Bug 28/05/16 - page and itemsPerPage parameters do not actually affect the number of or selection of tags returned
        /// </remarks>
        public Task <PageResponse <LastTag> > GetTopTagsAsync(int page = 1, int itemsPerPage = LastFm.DefaultPageLength)
        {
            var command = new GetTopTagsCommand(Auth)
            {
                Page       = page,
                Count      = itemsPerPage,
                HttpClient = HttpClient
            };

            return(command.ExecuteAsync());
        }
Beispiel #7
0
        public async Task <PageResponse <LastTag> > GetTopTagsAsync(string artist, string album, bool autocorrect = false)
        {
            var command = new GetTopTagsCommand(Auth)
            {
                ArtistName = artist,
                AlbumName  = album,
                HttpClient = HttpClient
            };

            return(await command.ExecuteAsync());
        }
Beispiel #8
0
        public Task <PageResponse <LastTag> > GetTopTagsByMbidAsync(string mbid, bool autocorrect = false)
        {
            var command = new GetTopTagsCommand(Auth)
            {
                ArtistMbid  = mbid,
                Autocorrect = autocorrect,
                HttpClient  = HttpClient
            };

            return(command.ExecuteAsync());
        }
Beispiel #9
0
        public async Task<PageResponse<LastTag>> GetTopTagsAsync(string artist, string album, bool autocorrect = false)
        {
            var command = new GetTopTagsCommand(Auth)
            {
                ArtistName = artist,
                AlbumName = album,
                HttpClient = HttpClient
            };

            return await command.ExecuteAsync();
        }
Beispiel #10
0
 public void Initialise()
 {
     _command = new GetTopTagsCommand(MAuth.Object);
 }
 public void Initialise()
 {
     _command = new GetTopTagsCommand(MAuth.Object, "");
 }