mirror of
https://github.com/Sarsoo/IF.Lastfm.git
synced 2024-10-17 07:13:09 +01:00
Removed methods using mbids. They weren't implemented anyway and last.fm doesn't use them reliably (see http://www.last.fm/group/Last.fm+Web+Services/forum/21604/_/2210879)
This commit is contained in:
parent
92aec324ef
commit
4e2b7b0235
@ -22,8 +22,6 @@ public AlbumApi(IAuth auth)
|
|||||||
Auth = auth;
|
Auth = auth;
|
||||||
}
|
}
|
||||||
|
|
||||||
#region album.getInfo
|
|
||||||
|
|
||||||
public async Task<LastResponse<Album>> GetAlbumInfoAsync(string artistname, string albumname, bool autocorrect = false)
|
public async Task<LastResponse<Album>> GetAlbumInfoAsync(string artistname, string albumname, bool autocorrect = false)
|
||||||
{
|
{
|
||||||
var command = new GetAlbumInfoCommand(Auth, artistname, albumname)
|
var command = new GetAlbumInfoCommand(Auth, artistname, albumname)
|
||||||
@ -34,78 +32,30 @@ public async Task<LastResponse<Album>> GetAlbumInfoAsync(string artistname, stri
|
|||||||
return await command.ExecuteAsync();
|
return await command.ExecuteAsync();
|
||||||
}
|
}
|
||||||
|
|
||||||
public Task<LastResponse<Album>> GetAlbumInfoWithMbidAsync(string mbid, bool autocorrect = false)
|
|
||||||
{
|
|
||||||
throw new NotImplementedException();
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region album.getBuylinks
|
|
||||||
|
|
||||||
public Task<PageResponse<BuyLink>> GetBuyLinksForAlbumAsync(string artist, string album, CountryCode country, bool autocorrect = false)
|
public Task<PageResponse<BuyLink>> GetBuyLinksForAlbumAsync(string artist, string album, CountryCode country, bool autocorrect = false)
|
||||||
{
|
{
|
||||||
throw new NotImplementedException();
|
throw new NotImplementedException();
|
||||||
}
|
}
|
||||||
|
|
||||||
public Task<PageResponse<BuyLink>> GetBuyLinksForAlbumWithMbidAsync(string mbid, CountryCode country, bool autocorrect = false)
|
|
||||||
{
|
|
||||||
throw new NotImplementedException();
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region album.getShouts
|
|
||||||
|
|
||||||
public Task<PageResponse<Shout>> GetShoutsForAlbumAsync(string artist, string album, bool autocorrect = false, int page = 1,
|
public Task<PageResponse<Shout>> GetShoutsForAlbumAsync(string artist, string album, bool autocorrect = false, int page = 1,
|
||||||
int itemsPerPage = LastFm.DefaultPageLength)
|
int itemsPerPage = LastFm.DefaultPageLength)
|
||||||
{
|
{
|
||||||
throw new NotImplementedException();
|
throw new NotImplementedException();
|
||||||
}
|
}
|
||||||
|
|
||||||
public Task<PageResponse<Shout>> GetShoutsForAlbumWithMbidAsync(string mbid, bool autocorrect = false, int page = 1,
|
|
||||||
int itemsPerPage = LastFm.DefaultPageLength)
|
|
||||||
{
|
|
||||||
throw new NotImplementedException();
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region album.getTags
|
|
||||||
|
|
||||||
public Task<PageResponse<Tag>> GetUserTagsForAlbumAsync(string artist, string album, string username, bool autocorrect = false)
|
public Task<PageResponse<Tag>> GetUserTagsForAlbumAsync(string artist, string album, string username, bool autocorrect = false)
|
||||||
{
|
{
|
||||||
throw new NotImplementedException();
|
throw new NotImplementedException();
|
||||||
}
|
}
|
||||||
|
|
||||||
public Task<PageResponse<Tag>> GetUserTagsForAlbumWithMbidAsync(string mbid, string username, bool autocorrect = false)
|
|
||||||
{
|
|
||||||
throw new NotImplementedException();
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region album.getTopTags
|
|
||||||
|
|
||||||
public Task<PageResponse<Tag>> GetTopTagsForAlbumAsync(string artist, string album, bool autocorrect = false)
|
public Task<PageResponse<Tag>> GetTopTagsForAlbumAsync(string artist, string album, bool autocorrect = false)
|
||||||
{
|
{
|
||||||
throw new NotImplementedException();
|
throw new NotImplementedException();
|
||||||
}
|
}
|
||||||
|
|
||||||
public Task<PageResponse<Tag>> GetTopTagsForAlbumWithMbidAsync(string mbid, bool autocorrect = false)
|
|
||||||
{
|
|
||||||
throw new NotImplementedException();
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region album.search
|
|
||||||
|
|
||||||
public Task<PageResponse<Album>> SearchForAlbumAsync(string album, int page = 1, int itemsPerPage = LastFm.DefaultPageLength)
|
public Task<PageResponse<Album>> SearchForAlbumAsync(string album, int page = 1, int itemsPerPage = LastFm.DefaultPageLength)
|
||||||
{
|
{
|
||||||
throw new NotImplementedException();
|
throw new NotImplementedException();
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -15,8 +15,6 @@ public ArtistApi(IAuth auth)
|
|||||||
Auth = auth;
|
Auth = auth;
|
||||||
}
|
}
|
||||||
|
|
||||||
#region artist.getInfo
|
|
||||||
|
|
||||||
public async Task<LastResponse<Artist>> GetArtistInfoAsync(string artist,
|
public async Task<LastResponse<Artist>> GetArtistInfoAsync(string artist,
|
||||||
string bioLang = LastFm.DefaultLanguageCode,
|
string bioLang = LastFm.DefaultLanguageCode,
|
||||||
bool autocorrect = false)
|
bool autocorrect = false)
|
||||||
@ -30,17 +28,6 @@ public async Task<LastResponse<Artist>> GetArtistInfoAsync(string artist,
|
|||||||
return await command.ExecuteAsync();
|
return await command.ExecuteAsync();
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task<LastResponse<Artist>> GetArtistInfoWithMbidAsync(string mbid,
|
|
||||||
string bioLang = LastFm.DefaultLanguageCode,
|
|
||||||
bool autocorrect = false)
|
|
||||||
{
|
|
||||||
throw new NotImplementedException();
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region artist.getTopAlbums
|
|
||||||
|
|
||||||
public async Task<PageResponse<Album>> GetTopAlbumsForArtistAsync(string artist,
|
public async Task<PageResponse<Album>> GetTopAlbumsForArtistAsync(string artist,
|
||||||
bool autocorrect = false,
|
bool autocorrect = false,
|
||||||
int page = 1,
|
int page = 1,
|
||||||
@ -49,18 +36,6 @@ public async Task<PageResponse<Album>> GetTopAlbumsForArtistAsync(string artist,
|
|||||||
throw new NotImplementedException();
|
throw new NotImplementedException();
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task<PageResponse<Album>> GetTopAlbumsForArtistWithMbidAsync(string mbid,
|
|
||||||
bool autocorrect = false,
|
|
||||||
int page = 1,
|
|
||||||
int itemsPerPage = LastFm.DefaultPageLength)
|
|
||||||
{
|
|
||||||
throw new NotImplementedException();
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region artist.getTags
|
|
||||||
|
|
||||||
public async Task<PageResponse<Tag>> GetUserTagsForArtistAsync(string artist,
|
public async Task<PageResponse<Tag>> GetUserTagsForArtistAsync(string artist,
|
||||||
string username,
|
string username,
|
||||||
bool autocorrect = false,
|
bool autocorrect = false,
|
||||||
@ -70,29 +45,9 @@ public async Task<PageResponse<Tag>> GetUserTagsForArtistAsync(string artist,
|
|||||||
throw new NotImplementedException();
|
throw new NotImplementedException();
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task<PageResponse<Tag>> GetUserTagsForArtistWithMbidAsync(string mbid,
|
|
||||||
string username,
|
|
||||||
bool autocorrect = false,
|
|
||||||
int page = 1,
|
|
||||||
int itemsPerPage = LastFm.DefaultPageLength)
|
|
||||||
{
|
|
||||||
throw new NotImplementedException();
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region artist.getTopTags
|
|
||||||
|
|
||||||
public async Task<PageResponse<Tag>> GetTopTagsForArtistAsync(string artist, bool autocorrect = false)
|
public async Task<PageResponse<Tag>> GetTopTagsForArtistAsync(string artist, bool autocorrect = false)
|
||||||
{
|
{
|
||||||
throw new NotImplementedException();
|
throw new NotImplementedException();
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task<PageResponse<Tag>> GetTopTagsForArtistWithMbidAsync(string mbid, bool autocorrect = false)
|
|
||||||
{
|
|
||||||
throw new NotImplementedException();
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -10,59 +10,23 @@ public interface IAlbumApi
|
|||||||
{
|
{
|
||||||
IAuth Auth { get; }
|
IAuth Auth { get; }
|
||||||
|
|
||||||
#region album.getInfo
|
|
||||||
|
|
||||||
Task<LastResponse<Album>> GetAlbumInfoAsync(string artist, string album, bool autocorrect = false);
|
Task<LastResponse<Album>> GetAlbumInfoAsync(string artist, string album, bool autocorrect = false);
|
||||||
Task<LastResponse<Album>> GetAlbumInfoWithMbidAsync(string mbid, bool autocorrect = false);
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region album.getBuylinks
|
|
||||||
|
|
||||||
Task<PageResponse<BuyLink>> GetBuyLinksForAlbumAsync(string artist,
|
Task<PageResponse<BuyLink>> GetBuyLinksForAlbumAsync(string artist,
|
||||||
string album,
|
string album,
|
||||||
CountryCode country,
|
CountryCode country,
|
||||||
bool autocorrect = false);
|
bool autocorrect = false);
|
||||||
|
|
||||||
Task<PageResponse<BuyLink>> GetBuyLinksForAlbumWithMbidAsync(string mbid,
|
|
||||||
CountryCode country,
|
|
||||||
bool autocorrect = false);
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region album.getShouts
|
|
||||||
|
|
||||||
Task<PageResponse<Shout>> GetShoutsForAlbumAsync(string artist,
|
Task<PageResponse<Shout>> GetShoutsForAlbumAsync(string artist,
|
||||||
string album,
|
string album,
|
||||||
bool autocorrect = false,
|
bool autocorrect = false,
|
||||||
int page = 1,
|
int page = 1,
|
||||||
int itemsPerPage = LastFm.DefaultPageLength);
|
int itemsPerPage = LastFm.DefaultPageLength);
|
||||||
|
|
||||||
Task<PageResponse<Shout>> GetShoutsForAlbumWithMbidAsync(string mbid,
|
|
||||||
bool autocorrect = false,
|
|
||||||
int page = 1,
|
|
||||||
int itemsPerPage = LastFm.DefaultPageLength);
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region album.getTags
|
|
||||||
|
|
||||||
Task<PageResponse<Tag>> GetUserTagsForAlbumAsync(string artist, string album, string username, bool autocorrect = false);
|
Task<PageResponse<Tag>> GetUserTagsForAlbumAsync(string artist, string album, string username, bool autocorrect = false);
|
||||||
Task<PageResponse<Tag>> GetUserTagsForAlbumWithMbidAsync(string mbid, string username, bool autocorrect = false);
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region album.getTopTags
|
|
||||||
|
|
||||||
Task<PageResponse<Tag>> GetTopTagsForAlbumAsync(string artist, string album, bool autocorrect = false);
|
Task<PageResponse<Tag>> GetTopTagsForAlbumAsync(string artist, string album, bool autocorrect = false);
|
||||||
Task<PageResponse<Tag>> GetTopTagsForAlbumWithMbidAsync(string mbid, bool autocorrect = false);
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region album.search
|
|
||||||
|
|
||||||
Task<PageResponse<Album>> SearchForAlbumAsync(string album, int page = 1, int itemsPerPage = LastFm.DefaultPageLength);
|
Task<PageResponse<Album>> SearchForAlbumAsync(string album, int page = 1, int itemsPerPage = LastFm.DefaultPageLength);
|
||||||
|
|
||||||
#endregion
|
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -12,53 +12,20 @@ public interface IArtistApi
|
|||||||
{
|
{
|
||||||
IAuth Auth { get; }
|
IAuth Auth { get; }
|
||||||
|
|
||||||
#region artist.getInfo
|
|
||||||
|
|
||||||
Task<LastResponse<Artist>> GetArtistInfoAsync(string artist, string bioLang = LastFm.DefaultLanguageCode,
|
Task<LastResponse<Artist>> GetArtistInfoAsync(string artist, string bioLang = LastFm.DefaultLanguageCode,
|
||||||
bool autocorrect = false);
|
bool autocorrect = false);
|
||||||
|
|
||||||
Task<LastResponse<Artist>> GetArtistInfoWithMbidAsync(string mbid, string bioLang = LastFm.DefaultLanguageCode,
|
|
||||||
bool autocorrect = false);
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region artist.getTopAlbums
|
|
||||||
|
|
||||||
Task<PageResponse<Album>> GetTopAlbumsForArtistAsync(string artist,
|
Task<PageResponse<Album>> GetTopAlbumsForArtistAsync(string artist,
|
||||||
bool autocorrect = false,
|
bool autocorrect = false,
|
||||||
int page = 1,
|
int page = 1,
|
||||||
int itemsPerPage = LastFm.DefaultPageLength);
|
int itemsPerPage = LastFm.DefaultPageLength);
|
||||||
|
|
||||||
Task<PageResponse<Album>> GetTopAlbumsForArtistWithMbidAsync(string mbid,
|
|
||||||
bool autocorrect = false,
|
|
||||||
int page = 1,
|
|
||||||
int itemsPerPage = LastFm.DefaultPageLength);
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region artist.getTags
|
|
||||||
|
|
||||||
Task<PageResponse<Tag>> GetUserTagsForArtistAsync(string artist,
|
Task<PageResponse<Tag>> GetUserTagsForArtistAsync(string artist,
|
||||||
string username,
|
string username,
|
||||||
bool autocorrect = false,
|
bool autocorrect = false,
|
||||||
int page = 1,
|
int page = 1,
|
||||||
int itemsPerPage = LastFm.DefaultPageLength);
|
int itemsPerPage = LastFm.DefaultPageLength);
|
||||||
|
|
||||||
Task<PageResponse<Tag>> GetUserTagsForArtistWithMbidAsync(string mbid,
|
|
||||||
string username,
|
|
||||||
bool autocorrect = false,
|
|
||||||
int page = 1,
|
|
||||||
int itemsPerPage = LastFm.DefaultPageLength);
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region artist.getTopTags
|
|
||||||
|
|
||||||
Task<PageResponse<Tag>> GetTopTagsForArtistAsync(string artist, bool autocorrect = false);
|
Task<PageResponse<Tag>> GetTopTagsForArtistAsync(string artist, bool autocorrect = false);
|
||||||
|
|
||||||
Task<PageResponse<Tag>> GetTopTagsForArtistWithMbidAsync(string mbid, bool autocorrect = false);
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -16,11 +16,6 @@ Task<PageResponse<Shout>> GetShoutsForTrackAsync(string trackname, string artist
|
|||||||
int page = 0,
|
int page = 0,
|
||||||
int count = LastFm.DefaultPageLength);
|
int count = LastFm.DefaultPageLength);
|
||||||
|
|
||||||
Task<PageResponse<Shout>> GetShoutsForTrackWithMbidAsync(string mbid,
|
|
||||||
int page = 0,
|
|
||||||
int count = LastFm.DefaultPageLength);
|
|
||||||
|
|
||||||
Task<LastResponse<Track>> GetInfoAsync(string trackname, string artistname, string username = "");
|
Task<LastResponse<Track>> GetInfoAsync(string trackname, string artistname, string username = "");
|
||||||
Task<LastResponse<Track>> GetInfoWithMbidAsynnc(string mbid, string username = "");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -70,11 +70,6 @@ public async Task<PageResponse<Shout>> GetShoutsForTrackAsync(string trackname,
|
|||||||
return await command.ExecuteAsync();
|
return await command.ExecuteAsync();
|
||||||
}
|
}
|
||||||
|
|
||||||
public Task<PageResponse<Shout>> GetShoutsForTrackWithMbidAsync(string mbid, int page = 0, int count = LastFm.DefaultPageLength)
|
|
||||||
{
|
|
||||||
throw new NotImplementedException();
|
|
||||||
}
|
|
||||||
|
|
||||||
public async Task<LastResponse<Track>> GetInfoAsync(string trackname, string artistname, string username = "")
|
public async Task<LastResponse<Track>> GetInfoAsync(string trackname, string artistname, string username = "")
|
||||||
{
|
{
|
||||||
var command = new GetTrackInfoCommand(Auth, trackname, artistname)
|
var command = new GetTrackInfoCommand(Auth, trackname, artistname)
|
||||||
@ -84,10 +79,5 @@ public async Task<LastResponse<Track>> GetInfoAsync(string trackname, string art
|
|||||||
|
|
||||||
return await command.ExecuteAsync();
|
return await command.ExecuteAsync();
|
||||||
}
|
}
|
||||||
|
|
||||||
public Task<LastResponse<Track>> GetInfoWithMbidAsynnc(string mbid, string username = "")
|
|
||||||
{
|
|
||||||
throw new NotImplementedException();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user