Files
YandexMusic/YandexMusic.API/API/YYnisonAPI.cs
FrigaT 36e28ce3fe
All checks were successful
Release / pack-and-publish (release) Successful in 36s
Полностью переписанное api
2026-04-19 17:00:05 +03:00

16 lines
486 B
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using YandexMusic.API.Common.Ynison;
namespace YandexMusic.API;
/// <summary>API для работы с Ynison (WebSocket-плеер).</summary>
public class YYnisonAPI : YCommonAPI
{
public YYnisonAPI(YandexMusicApi api) : base(api) { }
public YnisonPlayer GetPlayer()
{
if (string.IsNullOrEmpty(Api.Storage.Token))
throw new Exception("Токен пользователя не задан");
return new YnisonPlayer(Api, Api.Storage);
}
}