Beispiel #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 GetTrackShoutsCommand(Auth, trackname, artistname)
            {
                Page        = page,
                Count       = count,
                Autocorrect = autocorrect
            };

            return(await command.ExecuteAsync());
        }
Beispiel #2
0
        public GetTrackShoutsCommandTests()
        {
            _command = new GetTrackShoutsCommand(MAuth.Object, "Genesis", "Grimes")
            {
                Autocorrect = true,
                Page        = 5,
                Count       = 7
            };

            _command.SetParameters();
        }