//Removes the handler from the composition public void Delete(IAlarmHandler handler) { foreach (var key in _handlers.Keys) { _handlers[key].Remove(handler); } }
//Adds the handler to the composition public void Add(IAlarmHandler handler, SurveillanceMonitorConfig.SurveillanceMonitorCamera camera) { if (!_handlers.ContainsKey(camera.Id)) { _handlers.Add(camera.Id, new List <IAlarmHandler>()); } _handlers[camera.Id].Add(handler); }
public AlarmManagerReference SetupAlarm(IAlarmHandler alarms) { return(alarms.AddAlarmImmediate(this, 1f, TimeUnit.Hours)); }
public AlarmManagerReference SetupAlarm(IAlarmHandler alarms) { return(alarms.AddAlarmDay(this, 9)); }
public AlarmManagerReference SetupAlarm(IAlarmHandler alarms) { return(alarms.AddAlarmDay(this, 0f, ~DaysOfTheWeek.None)); }
public AlarmManagerReference SetupAlarm(IAlarmHandler alarms) { return alarms.AddAlarm(this, 1); }
public AlarmManagerReference SetupAlarm(IAlarmHandler alarms) { return(alarms.AddAlarmDay(this, PromSituation.kTimeOfEventAnnouncement)); }
public AlarmManagerReference SetupAlarm(IAlarmHandler alarms) { return(alarms.AddAlarmDay(this, LotManager.kVenueCleanupTime, ~DaysOfTheWeek.None)); }
public AlarmManagerReference SetupAlarm(IAlarmHandler alarms) { return(alarms.AddAlarm(this, 1f, TimeUnit.Minutes)); }
public AlarmManagerReference SetupAlarm(IAlarmHandler alarms) { return(alarms.AddAlarmDelayed(this, GetValue <OptionV2, int>(), TimeUnit.Minutes)); }
public AlarmManagerReference SetupAlarm(IAlarmHandler alarms) { return(alarms.AddAlarmDelayed(this, 0.5f, TimeUnit.Hours)); }
public AlarmManagerReference SetupAlarm(IAlarmHandler alarms) { AlarmData.Alarm = alarms.AddAlarm(this, GetTime()); return(AlarmData.Alarm); }
public AlarmManagerReference SetupAlarm(IAlarmHandler alarms) { return(alarms.AddAlarmDay(this, 0.01f, GetValue <TaxDaysOption, DaysOfTheWeek>())); }
public AlarmManagerReference SetupAlarm(IAlarmHandler alarms) { AlarmData.Alarm = alarms.AddAlarm(this, GetTime()); return AlarmData.Alarm; }