コード例 #1
0
 public LibraryGetTracksCommandTests()
 {
     _command = new LibraryGetTracksCommand(MAuth.Object, "rj", "", "", DateTime.MinValue)
     {
         Count = 1
     };
 }
コード例 #2
0
ファイル: LibraryApi.cs プロジェクト: PCurd/lastfm
        public async Task <PageResponse <LastTrack> > GetTracks(string username, string artist, string album, DateTimeOffset since, int pagenumber = 0, int count = LastFm.DefaultPageLength)
        {
            var command = new LibraryGetTracksCommand(Auth, username, artist, album, since)
            {
                Page  = pagenumber,
                Count = count
            };

            return(await command.ExecuteAsync());
        }