Пример #1
0
 //Removes the handler from the composition
 public void Delete(IAlarmHandler handler)
 {
     foreach (var key in _handlers.Keys)
     {
         _handlers[key].Remove(handler);
     }
 }
Пример #2
0
        //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);
        }
Пример #3
0
 public AlarmManagerReference SetupAlarm(IAlarmHandler alarms)
 {
     return(alarms.AddAlarmImmediate(this, 1f, TimeUnit.Hours));
 }
Пример #4
0
 public AlarmManagerReference SetupAlarm(IAlarmHandler alarms)
 {
     return(alarms.AddAlarmDay(this, 9));
 }
Пример #5
0
 public AlarmManagerReference SetupAlarm(IAlarmHandler alarms)
 {
     return(alarms.AddAlarmDay(this, 0f, ~DaysOfTheWeek.None));
 }
Пример #6
0
 public AlarmManagerReference SetupAlarm(IAlarmHandler alarms)
 {
     return alarms.AddAlarm(this, 1);
 }
Пример #7
0
 public AlarmManagerReference SetupAlarm(IAlarmHandler alarms)
 {
     return(alarms.AddAlarmDay(this, PromSituation.kTimeOfEventAnnouncement));
 }
Пример #8
0
 public AlarmManagerReference SetupAlarm(IAlarmHandler alarms)
 {
     return(alarms.AddAlarmDay(this, LotManager.kVenueCleanupTime, ~DaysOfTheWeek.None));
 }
Пример #9
0
 public AlarmManagerReference SetupAlarm(IAlarmHandler alarms)
 {
     return(alarms.AddAlarm(this, 1f, TimeUnit.Minutes));
 }
Пример #10
0
 public AlarmManagerReference SetupAlarm(IAlarmHandler alarms)
 {
     return(alarms.AddAlarmDelayed(this, GetValue <OptionV2, int>(), TimeUnit.Minutes));
 }
Пример #11
0
 public AlarmManagerReference SetupAlarm(IAlarmHandler alarms)
 {
     return(alarms.AddAlarmDelayed(this, 0.5f, TimeUnit.Hours));
 }
Пример #12
0
        public AlarmManagerReference SetupAlarm(IAlarmHandler alarms)
        {
            AlarmData.Alarm = alarms.AddAlarm(this, GetTime());

            return(AlarmData.Alarm);
        }
Пример #13
0
 public AlarmManagerReference SetupAlarm(IAlarmHandler alarms)
 {
     return(alarms.AddAlarmDay(this, 0.01f, GetValue <TaxDaysOption, DaysOfTheWeek>()));
 }
Пример #14
0
        public AlarmManagerReference SetupAlarm(IAlarmHandler alarms)
        {
            AlarmData.Alarm = alarms.AddAlarm(this, GetTime());

            return AlarmData.Alarm;
        }