Files
ersatztv/ErsatzTV.Core/Api/Settings/XmltvTimeZone.cs
T
timothyandClaude Fable 5 57905bc0f4 feat(api): settings read/write endpoints (#93)
GET/PUT /api/settings/{ffmpeg,playout,xmltv,scanner,logging,ui,hdhr}
wrapping the existing MediatR settings handlers, plus custom resolution
list/create/delete under /api/settings/resolutions. String-enum OpenAPI
schemas extended to OutputFormatKind + LogEventLevel.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-07 09:22:50 +02:00

17 lines
567 B
C#

using System.Text.Json.Serialization;
namespace ErsatzTV.Core.Api.Settings;
/// <summary>
/// Wire-contract mirror of <c>ErsatzTV.Application.Configuration.XmltvTimeZone</c>.
/// Duplicated here (rather than referenced directly) because <c>ErsatzTV.Core</c> may not depend on
/// <c>ErsatzTV.Application</c> (see <c>ErsatzTV.Architecture.Tests</c>); the controller mapper translates
/// between the two by value.
/// </summary>
[JsonConverter(typeof(JsonStringEnumConverter<XmltvTimeZone>))]
public enum XmltvTimeZone
{
Local = 0,
Utc = 1
}