Files
Heimdall/src/Heimdall.Agent/AgentCameraOptions.cs
T

22 lines
740 B
C#
Raw Normal View History

using System.ComponentModel.DataAnnotations;
namespace Heimdall.Agent;
/// <summary>
/// A camera assignment declared in the local agent configuration
/// (<c>Agent:Cameras</c>). Used only as a fallback before the Central camera
/// list is received through the settings pipeline.
/// </summary>
public sealed class AgentCameraOptions
{
/// <summary>Display name of the camera.</summary>
public string Name { get; init; } = string.Empty;
/// <summary>Primary RTSP URL of the camera.</summary>
[Required, Url]
public string RtspUrl { get; init; } = string.Empty;
/// <summary>Secondary / sub-stream RTSP URL (lower resolution, preferred for AI).</summary>
[Url]
public string? SubRtspUrl { get; init; }
}