/// <summary> /// Constructor for boolean output argument for an action /// </summary> /// <remarks>Intended to be created without any value. The value is later set after /// CpService.InvokeAction is called but before the invocation's callback is run)</remarks> /// <param name="aParameter">Defines the name for the argument. /// Must have been previously added to the action using Action.AddOutputParameter</param> public ArgumentBool(ParameterBool aParameter) { iHandle = ActionArgumentCreateBoolOutput(aParameter.Handle()); }
/// <summary> /// Constructor for boolean input argument for an action /// </summary> /// <remarks>Intended to be write only (its value is written on construction and not be later read)</remarks> /// <param name="aParameter">Defines the name for the argument. /// Must have been previously added to the action using Action.AddInputParameter</param> /// <param name="aValue">Value for the argument</param> public ArgumentBool(ParameterBool aParameter, bool aValue) { iHandle = ActionArgumentCreateBoolInput(aParameter.Handle(), (aValue? 1u : 0u)); }