예제 #1
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());
        }
예제 #2
0
파일: ArtistApi.cs 프로젝트: Brijen/lastfm
 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();
 }
예제 #3
0
        public GetTrackShoutsCommandTests()
        {
            _command = new GetShoutsCommand(MAuth.Object, "Genesis", "Grimes")
            {
                Autocorrect = true,
                Page        = 5,
                Count       = 7
            };

            _command.SetParameters();
        }
예제 #4
0
파일: TrackApi.cs 프로젝트: roberdjp/lastfm
 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();
 }
예제 #5
0
        public GetTrackShoutsCommandTests()
        {
            _command = new GetShoutsCommand(MAuth.Object, "Genesis", "Grimes")
                       {
                           Autocorrect = true,
                           Page = 5,
                           Count = 7
                       };

            _command.SetParameters();
        }
예제 #6
0
파일: TrackApi.cs 프로젝트: Brijen/lastfm
        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());
        }
예제 #7
0
 public GetAlbumShoutsCommandTests()
 {
     _command = new GetShoutsCommand(MAuth.Object, "Visions", "Grimes");
 }
 public GetAlbumShoutsCommandTests()
 {
     _command = new GetShoutsCommand(MAuth.Object, "Visions", "Grimes");
 }
예제 #9
0
파일: UserApi.cs 프로젝트: roberdjp/lastfm
        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();
        }