Пример #1
0
 public async Task<PageResponse<LastShout>> GetShoutsForTrackAsync(string trackname, string artistname, bool autocorrect = false, int page = 0, int count = LastFm.DefaultPageLength)
 {
     var command = new GetShoutsCommand(Auth, trackname, artistname)
     {
         Page = page,
         Count = count,
         Autocorrect = autocorrect,
         HttpClient = HttpClient
     };
     return await command.ExecuteAsync();
 }
Пример #2
0
        public GetTrackShoutsCommandTests()
        {
            _command = new GetShoutsCommand(MAuth.Object, "Genesis", "Grimes")
                       {
                           Autocorrect = true,
                           Page = 5,
                           Count = 7
                       };

            _command.SetParameters();
        }
Пример #3
0
 public GetAlbumShoutsCommandTests()
 {
     _command = new GetShoutsCommand(MAuth.Object, "Visions", "Grimes");
 }
Пример #4
0
        public async Task<PageResponse<LastShout>> GetShoutsAsync(string username, int pagenumber, int count = LastFm.DefaultPageLength)
        {
            var command = new GetShoutsCommand(Auth, username)
            {
                Page = pagenumber,
                Count = count,
                HttpClient = HttpClient
            };

            return await command.ExecuteAsync();
        }