37 lines
1.0 KiB
C#
37 lines
1.0 KiB
C#
using System.Text.Json.Serialization;
|
|
using System.Xml.Linq;
|
|
using System.Xml.Serialization;
|
|
|
|
namespace Shadow.DTOs;
|
|
|
|
public class SubsonicResponseDTO
|
|
{
|
|
[JsonPropertyName("status")]
|
|
public string Status { get; set; } = "ok";
|
|
|
|
[JsonPropertyName("version")]
|
|
public string version { get; set; } = "1.15.0";
|
|
|
|
[JsonPropertyName("type")]
|
|
public string type { get; set; } = "shadow";
|
|
|
|
[JsonPropertyName("serverVersion")]
|
|
public string serverVersion { get; set; } = $"0.0.1 ({ThisAssembly.Git.Commit})";
|
|
|
|
[JsonPropertyName("openSubsonic")]
|
|
public bool openSubsonic { get; set; } = true;
|
|
|
|
[JsonPropertyName("error")]
|
|
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
|
public ErrorDTO? error { get; set; } = null;
|
|
|
|
[JsonPropertyName("albumList2")]
|
|
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
|
public AlbumList2DTO? albumList2 { get; set; } = null;
|
|
|
|
[JsonPropertyName("user")]
|
|
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
|
public UserPingDTO? userPing { get; set; } = null;
|
|
|
|
}
|