Beispiel #1
0
        public async Task <PageResponse <LastTrack> > GetTopTracksAsync(int page = 1, int itemsPerPage = LastFm.DefaultPageLength)
        {
            var command = new GetTopTracksCommand(Auth)
            {
                Page  = page,
                Count = itemsPerPage
            };

            return(await command.ExecuteAsync());
        }
Beispiel #2
0
 public async Task<PageResponse<LastTrack>> GetTopTracksAsync(int page = 1, int itemsPerPage = LastFm.DefaultPageLength)
 {
     var command = new GetTopTracksCommand(Auth)
     {
         Page = page,
         Count = itemsPerPage,
         HttpClient = HttpClient
     };
     return await command.ExecuteAsync();
 }
Beispiel #3
0
        public async Task <PageResponse <LastTrack> > GetTopTracksForArtistAsync(string artist, bool autocorrect = false, int page = 1, int itemsPerPage = LastFm.DefaultPageLength)
        {
            var command = new GetTopTracksCommand(Auth, artist)
            {
                Page  = page,
                Count = itemsPerPage
            };

            return(await command.ExecuteAsync());
        }
Beispiel #4
0
 public async Task<PageResponse<LastTrack>> GetTopTracksAsync(string artist, bool autocorrect = false, int page = 1, int itemsPerPage = LastFm.DefaultPageLength)
 {
     var command = new GetTopTracksCommand(Auth, artist)
     {
         Page = page,
         Count = itemsPerPage,
         HttpClient = HttpClient
     };
     return await command.ExecuteAsync();
 }
Beispiel #5
0
        /// <summary>
        /// Get the top artists tagged by this tag, ordered by tag count.
        /// </summary>
        public Task <PageResponse <LastTrack> > GetTopTracksAsync(string tagName, int page = 1, int itemsPerPage = LastFm.DefaultPageLength)
        {
            var command = new GetTopTracksCommand(Auth, tagName)
            {
                HttpClient = HttpClient,
                Page       = page,
                Count      = itemsPerPage
            };

            return(command.ExecuteAsync());
        }