コード例 #1
0
        public TimableTrigger BuildTrigger(OHMSensor sensor, ITirggerAction action, float waitTimeInMilleseconds)
        {
            var trigger = new TimableTrigger(sensor, action, waitTimeInMilleseconds);

            _triggers.Add(trigger);
            _sensors.Add(sensor);

            return(trigger);
        }
コード例 #2
0
ファイル: TimableTrigger.cs プロジェクト: twilingway/informer
 public TimableTrigger(ISensor sensor, ITirggerAction action, float waitTimeInMilleseconds)
 {
     Sensor  = sensor;
     _action = action;
     WaitTimeInMilleseconds = waitTimeInMilleseconds;
 }