namespace ZB.MOM.WW.ScadaBridge.DelmiaNotifier;

/// <summary>Root of <c>appsettings.json</c>; mirrors the <c>ScadaBridge</c> section only.</summary>
internal sealed class NotifierConfig
{
    /// <summary>The <c>ScadaBridge</c> configuration section (base URLs, timeout, log path).</summary>
    public ScadaBridgeSection ScadaBridge { get; set; } = new();
}

internal sealed class ScadaBridgeSection
{
    /// <summary>Comma-separated failover list of base URLs (the method path is appended by the app).</summary>
    public string? BaseUrls { get; set; }

    /// <summary>Per-attempt HTTP timeout in seconds.</summary>
    public int TimeoutSeconds { get; set; } = 30;

    /// <summary>Optional diagnostic log file (relative to the exe); null/omitted → stderr only.</summary>
    public string? LogPath { get; set; }
}
