private async Task Enqueue(OnOffCameraContruct onvifEvent) { Trace.WriteLine(Invariant($"[{CameraSettings.Name}]Event:{onvifEvent.Id} Enabled:{onvifEvent.Active}")); await Updates.EnqueueAsync(onvifEvent, Token).ConfigureAwait(false); }
private async Task Enqueue(OnOffCameraContruct alarm) { Trace.WriteLine(Invariant($"[{CameraSettings.Name}]Alarm:{alarm.Id} Active:{alarm.Active}")); await Updates.EnqueueAsync(alarm, Token).ConfigureAwait(false); }
private OnOffCameraContruct CloneWithDifferentState(OnOffCameraContruct cameraContruct, bool state) { var info = (OnvifEventInfo)cameraContruct; return(new OnvifEventInfo(info.Id, state)); }
private OnOffCameraContruct CloneAlarmInfo(OnOffCameraContruct cameraContruct, bool state) { var alarmInfo = (AlarmInfo)cameraContruct; return(new AlarmInfo(alarmInfo.AlarmType, alarmInfo.ChannelID, state)); }