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()); }
public async Task<PageResponse<LastShout>> GetShoutsAsync(string artist, int page = 0, int count = LastFm.DefaultPageLength, bool autocorrect = false) { var command = new GetShoutsCommand(Auth, artist) { Autocorrect = autocorrect, Page = page, Count = count, HttpClient = HttpClient }; return await command.ExecuteAsync(); }
public GetTrackShoutsCommandTests() { _command = new GetShoutsCommand(MAuth.Object, "Genesis", "Grimes") { Autocorrect = true, Page = 5, Count = 7 }; _command.SetParameters(); }
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(); }
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()); }
public GetAlbumShoutsCommandTests() { _command = new GetShoutsCommand(MAuth.Object, "Visions", "Grimes"); }
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(); }