public OutputParameter ( int aIndex ) : |
||
aIndex | int | (Zero-based) Index of the parameter |
return |
var action = new Action("TurnOnLight", "KitchenLight"); var outputParameter = new Argument("Success", typeof(bool)); action.AddOutputParameter(outputParameter);
var action = new Action("SetTemperature", "Thermostat"); var outputParameter1 = new Argument("Success", typeof(bool)); var outputParameter2 = new Argument("CurrentTemperature", typeof(decimal)); action.AddOutputParameter(outputParameter1); action.AddOutputParameter(outputParameter2);In this example, we create an Action object named "SetTemperature" that represents setting the temperature on a thermostat. We define two output parameters: "Success" of type bool and "CurrentTemperature" of type decimal. These examples demonstrate how to use the OutputParameter property of the Action class to define the output parameters of an action in a home automation system using the OpenHome.Net.Core package library.
public OutputParameter ( int aIndex ) : |
||
aIndex | int | (Zero-based) Index of the parameter |
return |