Пример #1
0
        /// <summary>
        /// Get the metadata for a tag.
        /// </summary>
        public Task<LastResponse<LastTag>> GetInfoAsync(string tagName)
        {
            var command = new GetInfoCommand(Auth, tagName)
            {
                HttpClient = HttpClient
            };

            return command.ExecuteAsync();
        }
Пример #2
0
        /// <summary>
        /// Get the metadata for a tag.
        /// </summary>
        public Task <LastResponse <LastTag> > GetInfoAsync(string tagName)
        {
            var command = new GetInfoCommand(Auth, tagName)
            {
                HttpClient = HttpClient
            };

            return(command.ExecuteAsync());
        }
Пример #3
0
        public async Task <LastResponse <LastUser> > GetInfoAsync(string username)
        {
            var command = new GetInfoCommand(Auth, username)
            {
                HttpClient = HttpClient
            };

            return(await command.ExecuteAsync());
        }
Пример #4
0
        public async Task <LastResponse <LastTrack> > GetInfoByMbidAsync(string mbid)
        {
            var command = new GetInfoCommand(Auth)
            {
                TrackMbid  = mbid,
                HttpClient = HttpClient
            };

            return(await command.ExecuteAsync());
        }
Пример #5
0
        public async Task <LastResponse <LastAlbum> > GetInfoAsync(string artistname, string albumname, bool autocorrect = false)
        {
            var command = new GetInfoCommand(Auth, albumname, artistname)
            {
                Autocorrect = autocorrect,
                HttpClient  = HttpClient
            };

            return(await command.ExecuteAsync());
        }
Пример #6
0
        public async Task<LastResponse<LastAlbum>> GetInfoAsync(string artistname, string albumname, bool autocorrect = false)
        {
            var command = new GetInfoCommand(Auth, albumname, artistname)
                          {
                              Autocorrect = autocorrect,
                              HttpClient = HttpClient
                          };

            return await command.ExecuteAsync();
        }
Пример #7
0
        public async Task<LastResponse<LastTrack>> GetInfoByMbidAsync(string mbid)
        {
            var command = new GetInfoCommand(Auth)
            {
                TrackMbid = mbid,
                HttpClient = HttpClient
            };

            return await command.ExecuteAsync();
        }
Пример #8
0
        public async Task <LastResponse <LastAlbum> > GetInfoByMbidAsync(string albumMbid, bool autocorrect = false, string username = null)
        {
            var command = new GetInfoCommand(Auth)
            {
                AlbumMbid   = albumMbid,
                Autocorrect = autocorrect,
                HttpClient  = HttpClient
            };

            return(await command.ExecuteAsync());
        }
Пример #9
0
        public async Task<LastResponse<LastAlbum>> GetInfoByMbidAsync(string albumMbid, bool autocorrect = false)
        {
            var command = new GetInfoCommand(Auth)
            {
                AlbumMbid = albumMbid,
                Autocorrect = autocorrect,
                HttpClient = HttpClient
            };

            return await command.ExecuteAsync();
        }
Пример #10
0
        public async Task <LastResponse <LastTrack> > GetInfoAsync(string trackname, string artistname, string username = "")
        {
            var command = new GetInfoCommand(Auth)
            {
                TrackName  = trackname,
                ArtistName = artistname,
                Username   = username,
                HttpClient = HttpClient
            };

            return(await command.ExecuteAsync());
        }
Пример #11
0
        public async Task <LastResponse <LastArtist> > GetInfoByMbidAsync(string mbid, string bioLang = LastFm.DefaultLanguageCode, bool autocorrect = false)
        {
            var command = new GetInfoCommand(Auth)
            {
                ArtistMbid  = mbid,
                BioLanguage = bioLang,
                Autocorrect = autocorrect,
                HttpClient  = HttpClient
            };

            return(await command.ExecuteAsync());
        }
Пример #12
0
        public async Task <LastResponse <LastTrack> > GetInfoByMbidAsync(string mbid, string username = "", bool autocorrect = false)
        {
            var command = new GetInfoCommand(Auth)
            {
                TrackMbid   = mbid,
                Username    = username,
                Autocorrect = autocorrect,
                HttpClient  = HttpClient
            };

            return(await command.ExecuteAsync());
        }
Пример #13
0
        public async Task<LastResponse<LastArtist>> GetInfoByMbidAsync(string mbid, string bioLang = LastFm.DefaultLanguageCode, bool autocorrect = false)
        {
            var command = new GetInfoCommand(Auth)
            {
                ArtistMbid = mbid,
                BioLanguage = bioLang,
                Autocorrect = autocorrect,
                HttpClient = HttpClient
            };

            return await command.ExecuteAsync();
        }
Пример #14
0
        public async Task<LastResponse<LastTrack>> GetInfoAsync(string trackname, string artistname, string username = "")
        {
            var command = new GetInfoCommand(Auth)
            {
                TrackName = trackname,
                ArtistName = artistname,
                Username = username,
                HttpClient = HttpClient
            };

            return await command.ExecuteAsync();
        }
Пример #15
0
        public async Task<LastResponse<LastUser>> GetInfoAsync(string username)
        {
            var command = new GetInfoCommand(Auth, username)
            {
                HttpClient = HttpClient
            };

            return await command.ExecuteAsync();
        }