public ToggleAutomationRule(string id, IToggleDevice toggleDevice, IToggleAutomationCondition condition)
        {
            Id           = id;
            ToggleDevice = toggleDevice;
            Condition    = condition;
            State        = Condition.State;

            Condition.OnStateChanged += Condition_OnStateChanged;
        }
예제 #2
0
 public ToggleAutomationConditionStateChangedHandler(IToggleAutomationCondition condition, bool newState)
 {
     Condition = condition;
     NewState  = newState;
 }