Обнновлено до .net10
This commit is contained in:
21
YandexMusic.API/API/YYnisonAPI.cs
Normal file
21
YandexMusic.API/API/YYnisonAPI.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using YandexMusic.API.Common;
|
||||
using YandexMusic.API.Common.Ynison;
|
||||
|
||||
namespace YandexMusic.API;
|
||||
/// <summary>
|
||||
/// API Ynison
|
||||
/// </summary>
|
||||
public partial class YYnisonAPI : YCommonAPI
|
||||
{
|
||||
public YYnisonAPI(YandexMusicApi yandex) : base(yandex)
|
||||
{
|
||||
}
|
||||
|
||||
public YnisonPlayer GetPlayer(AuthStorage storage)
|
||||
{
|
||||
if (string.IsNullOrEmpty(storage.Token))
|
||||
throw new Exception("Токен пользователя не задан.");
|
||||
|
||||
return new(api, storage);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user