14 lines
508 B
C#
14 lines
508 B
C#
using System.Text.Json.Serialization;
|
|
using YandexMusic.API.Models.Common;
|
|
|
|
namespace YandexMusic.API.Models.Search;
|
|
|
|
/// <summary>Лучший результат поиска.</summary>
|
|
[JsonConverter(typeof(YSearchBestConverter))]
|
|
public class YSearchBest
|
|
{
|
|
/// <summary>Тип найденного объекта.</summary>
|
|
public YSearchType Type { get; set; }
|
|
/// <summary>Найденный объект (тип зависит от Type).</summary>
|
|
public object? Result { get; set; }
|
|
} |