Обнновлено до .net10
This commit is contained in:
@@ -1,36 +1,35 @@
|
||||
using YandexMusic.API.Models.Artist;
|
||||
using YandexMusic.API.Models.Track;
|
||||
|
||||
namespace YandexMusic.API.Extensions.API
|
||||
namespace YandexMusic.API.Extensions.API;
|
||||
|
||||
/// <summary>
|
||||
/// Методы-расширения для исполнителя
|
||||
/// </summary>
|
||||
public static partial class YArtistExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// Методы-расширения для исполнителя
|
||||
/// </summary>
|
||||
public static partial class YArtistExtensions
|
||||
public static YArtistBriefInfo BriefInfo(this YArtist artist)
|
||||
{
|
||||
public static YArtistBriefInfo BriefInfo(this YArtist artist)
|
||||
{
|
||||
return BriefInfoAsync(artist).GetAwaiter().GetResult();
|
||||
}
|
||||
return BriefInfoAsync(artist).GetAwaiter().GetResult();
|
||||
}
|
||||
|
||||
public static YTracksPage GetTracks(this YArtist artist, int page = 0, int pageSize = 20)
|
||||
{
|
||||
return GetTracksAsync(artist, page, pageSize).GetAwaiter().GetResult();
|
||||
}
|
||||
public static YTracksPage GetTracks(this YArtist artist, int page = 0, int pageSize = 20)
|
||||
{
|
||||
return GetTracksAsync(artist, page, pageSize).GetAwaiter().GetResult();
|
||||
}
|
||||
|
||||
public static List<YTrack> GetAllTracks(this YArtist artist)
|
||||
{
|
||||
return GetAllTracksAsync(artist).GetAwaiter().GetResult();
|
||||
}
|
||||
public static List<YTrack> GetAllTracks(this YArtist artist)
|
||||
{
|
||||
return GetAllTracksAsync(artist).GetAwaiter().GetResult();
|
||||
}
|
||||
|
||||
public static string AddLike(this YArtist artist)
|
||||
{
|
||||
return AddLikeAsync(artist).GetAwaiter().GetResult();
|
||||
}
|
||||
public static string AddLike(this YArtist artist)
|
||||
{
|
||||
return AddLikeAsync(artist).GetAwaiter().GetResult();
|
||||
}
|
||||
|
||||
public static string RemoveLike(this YArtist artist)
|
||||
{
|
||||
return RemoveLikeAsync(artist).GetAwaiter().GetResult();
|
||||
}
|
||||
public static string RemoveLike(this YArtist artist)
|
||||
{
|
||||
return RemoveLikeAsync(artist).GetAwaiter().GetResult();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user