Переделано воспроизведение аудио
All checks were successful
Release / pack-and-publish (release) Successful in 36s
All checks were successful
Release / pack-and-publish (release) Successful in 36s
This commit is contained in:
@@ -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!;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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; }
|
||||
}
|
||||
Reference in New Issue
Block a user