namespace Heimdall.Agent.Services; /// /// Immutable camera assignment consumed by the capture pipeline. Built either /// from the Central settings keys (camera.<id>.name|rtsp|sub_rtsp|enabled) /// or from the local Agent:Cameras fallback. /// public sealed record AgentCameraConfig( Guid CameraId, string Name, string RtspUrl, string? SubRtspUrl, bool Enabled, Heimdall.Application.DTOs.DetectionProfileDto? DetectionProfile = null, bool RecordingEnabled = false, bool EventRecordingEnabled = false) { /// /// URL used for AI capture: the low-res sub-stream when available, /// otherwise the primary stream. /// public string EffectiveRtspUrl => !string.IsNullOrWhiteSpace(SubRtspUrl) ? SubRtspUrl : RtspUrl; }