Переделано воспроизведение аудио
All checks were successful
Release / pack-and-publish (release) Successful in 36s

This commit is contained in:
2026-04-21 11:14:36 +03:00
parent eb1eba0162
commit 526353d679
12 changed files with 107 additions and 47 deletions

View File

@@ -9,7 +9,7 @@ namespace YandexMusic.API.Models.Common;
public class YExecutionContext
{
/// <summary>Экземпляр основного API.</summary>
public YandexMusicApi API { get; internal set; } = null!;
public YandexMusicApi Api { get; internal set; } = null!;
/// <summary>Хранилище данных авторизации.</summary>
public AuthStorage Storage { get; internal set; } = null!;

View File

@@ -38,7 +38,7 @@ public class YExecutionContextConverter : JsonConverter<object>
var obj = JsonSerializer.Deserialize(ref reader, typeToConvert, innerOptions);
if (obj is YBaseModel baseModel)
{
baseModel.Context = new YExecutionContext { API = _api, Storage = _storage };
baseModel.Context = new YExecutionContext { Api = _api, Storage = _storage };
}
return obj;
}

View File

@@ -1,9 +1,16 @@
using System.Xml.Serialization;
namespace YandexMusic.API.Models.Common;
[XmlRoot("download-info")]
public class YStorageDownloadFile
{
[XmlElement("host")]
public string Host { get; set; }
[XmlElement("path")]
public string Path { get; set; }
[XmlElement("s")]
public string S { get; set; }
[XmlElement("ts")]
public string Ts { get; set; }
}