/// <summary> /// Initializes a new instance of the <see cref="ActionItem" /> class. /// </summary> /// <param name="displayType">To specify the type of UI component to display this action or state. The corresponding field must also be included. For example, if you specify \"switch\" here, you must also include the \"switch\" key and its object definition for this action or state. (required).</param> /// <param name="pushButton">pushButton.</param> /// <param name="toggleSwitch">toggleSwitch.</param> /// <param name="_switch">_switch.</param> /// <param name="standbyPowerSwitch">standbyPowerSwitch.</param> /// <param name="statelessPowerToggle">statelessPowerToggle.</param> /// <param name="playPause">playPause.</param> /// <param name="playStop">playStop.</param> /// <param name="group">The group name to which this belongs. Some complex devices can be shown grouped in the dashboard card. This is used for grouping states and actions in the dashboard. (default to "main").</param> public ActionItem(DisplayTypeEnum displayType = default(DisplayTypeEnum), PushButton pushButton = default(PushButton), ToggleSwitchForDashboard toggleSwitch = default(ToggleSwitchForDashboard), SwitchForDashboard _switch = default(SwitchForDashboard), StandbyPowerSwitchForDashboard standbyPowerSwitch = default(StandbyPowerSwitchForDashboard), StatelessPowerToggleForDashboard statelessPowerToggle = default(StatelessPowerToggleForDashboard), PlayPause playPause = default(PlayPause), PlayStop playStop = default(PlayStop), string group = "main") { this.DisplayType = displayType; this.PushButton = pushButton; this.ToggleSwitch = toggleSwitch; this.Switch = _switch; this.StandbyPowerSwitch = standbyPowerSwitch; this.StatelessPowerToggle = statelessPowerToggle; this.PlayPause = playPause; this.PlayStop = playStop; // use default value if no "group" provided this.Group = group ?? "main"; }
/// <summary> /// Initializes a new instance of the <see cref="DetailViewItemAllOf" /> class. /// </summary> /// <param name="label">label (required).</param> /// <param name="displayType">Specify the type of UI component to use to display this action or state. The corresponding field must also be included. For example, if you specify \"switch\" here, you must also include the \"switch\" key and its object definition for this action or state. (required).</param> /// <param name="toggleSwitch">toggleSwitch.</param> /// <param name="standbyPowerSwitch">standbyPowerSwitch.</param> /// <param name="_switch">_switch.</param> /// <param name="slider">slider.</param> /// <param name="pushButton">pushButton.</param> /// <param name="playPause">playPause.</param> /// <param name="playStop">playStop.</param> /// <param name="list">list.</param> /// <param name="textField">textField.</param> /// <param name="numberField">numberField.</param> /// <param name="stepper">stepper.</param> /// <param name="state">state.</param> /// <param name="multiArgCommand">multiArgCommand.</param> public DetailViewItemAllOf(string label = default(string), DisplayTypeEnum displayType = default(DisplayTypeEnum), ToggleSwitch toggleSwitch = default(ToggleSwitch), StandbyPowerSwitch standbyPowerSwitch = default(StandbyPowerSwitch), SwitchObj _switch = default(SwitchObj), Slider slider = default(Slider), PushButton pushButton = default(PushButton), PlayPause playPause = default(PlayPause), PlayStop playStop = default(PlayStop), ListForDetailView list = default(ListForDetailView), TextField textField = default(TextField), NumberField numberField = default(NumberField), Stepper stepper = default(Stepper), State state = default(State), MultiArgCommand multiArgCommand = default(MultiArgCommand)) { // to ensure "label" is required (not null) this.Label = label ?? throw new ArgumentNullException("label is a required property for DetailViewItemAllOf and cannot be null"); this.DisplayType = displayType; this.ToggleSwitch = toggleSwitch; this.StandbyPowerSwitch = standbyPowerSwitch; this.Switch = _switch; this.Slider = slider; this.PushButton = pushButton; this.PlayPause = playPause; this.PlayStop = playStop; this.List = list; this.TextField = textField; this.NumberField = numberField; this.Stepper = stepper; this.State = state; this.MultiArgCommand = multiArgCommand; }
/// <summary> /// Initializes a new instance of the <see cref="DetailViewListItem" /> class. /// </summary> /// <param name="capability">capability (required).</param> /// <param name="version">The version number of the capability. (default to 1).</param> /// <param name="label">label (required).</param> /// <param name="displayType">To specify the type of UI component to display this action or state. The corresponding field must also be included. For example, if you specify \"switch\" here, you must also include the \"switch\" key and its object definition for this action or state. (required).</param> /// <param name="toggleSwitch">toggleSwitch.</param> /// <param name="standbyPowerSwitch">standbyPowerSwitch.</param> /// <param name="_switch">_switch.</param> /// <param name="slider">slider.</param> /// <param name="pushButton">pushButton.</param> /// <param name="textButton">textButton.</param> /// <param name="playPause">playPause.</param> /// <param name="playStop">playStop.</param> /// <param name="list">list.</param> /// <param name="textField">textField.</param> /// <param name="numberField">numberField.</param> /// <param name="stepper">stepper.</param> /// <param name="state">state.</param> /// <param name="multiArgCommand">multiArgCommand.</param> /// <param name="component">component (default to "main").</param> /// <param name="visibleCondition">visibleCondition.</param> public DetailViewListItem(string capability = default(string), int version = 1, string label = default(string), DisplayTypeEnum displayType = default(DisplayTypeEnum), ToggleSwitch toggleSwitch = default(ToggleSwitch), StandbyPowerSwitch standbyPowerSwitch = default(StandbyPowerSwitch), Switch _switch = default(Switch), Slider slider = default(Slider), PushButton pushButton = default(PushButton), TextButton textButton = default(TextButton), PlayPause playPause = default(PlayPause), PlayStop playStop = default(PlayStop), ListForDetailView list = default(ListForDetailView), TextField textField = default(TextField), NumberField numberField = default(NumberField), Stepper stepper = default(Stepper), State state = default(State), MultiArgCommand multiArgCommand = default(MultiArgCommand), string component = "main", VisibleCondition visibleCondition = default(VisibleCondition)) { // to ensure "capability" is required (not null) if (capability == null) { throw new ArgumentNullException("capability is a required property for DetailViewListItem and cannot be null"); } this.Capability = capability; // to ensure "label" is required (not null) if (label == null) { throw new ArgumentNullException("label is a required property for DetailViewListItem and cannot be null"); } this.Label = label; this.DisplayType = displayType; this._Version = version; this.ToggleSwitch = toggleSwitch; this.StandbyPowerSwitch = standbyPowerSwitch; this.Switch = _switch; this.Slider = slider; this.PushButton = pushButton; this.TextButton = textButton; this.PlayPause = playPause; this.PlayStop = playStop; this.List = list; this.TextField = textField; this.NumberField = numberField; this.Stepper = stepper; this.State = state; this.MultiArgCommand = multiArgCommand; // use default value if no "component" provided this.Component = component ?? "main"; this.VisibleCondition = visibleCondition; }
/// <summary> /// Initializes a new instance of the <see cref="ActionsArrayItem" /> class. /// </summary> /// <param name="displayType">To specify the type of UI component to display this action or state. The corresponding field must also be included. For example, if you specify \"switch\" here, you must also include the \"switch\" key and its object definition for this action or state. (required).</param> /// <param name="pushButton">pushButton.</param> /// <param name="toggleSwitch">toggleSwitch.</param> /// <param name="_switch">_switch.</param> /// <param name="standbyPowerSwitch">standbyPowerSwitch.</param> /// <param name="statelessPowerToggle">statelessPowerToggle.</param> /// <param name="playPause">playPause.</param> /// <param name="playStop">playStop.</param> /// <param name="group">The group name to which this belongs. Some complex devices can be shown grouped in the dashboard card. This is used for grouping states and actions in the dashboard. (default to "main").</param> /// <param name="capability">capability (required).</param> /// <param name="version">The version number of the capability. (default to 1).</param> /// <param name="component">component (default to "main").</param> /// <param name="visibleCondition">visibleCondition.</param> public ActionsArrayItem(DisplayTypeEnum displayType = default(DisplayTypeEnum), PushButton pushButton = default(PushButton), ToggleSwitchForDashboard toggleSwitch = default(ToggleSwitchForDashboard), SwitchForDashboard _switch = default(SwitchForDashboard), StandbyPowerSwitchForDashboard standbyPowerSwitch = default(StandbyPowerSwitchForDashboard), StatelessPowerToggleForDashboard statelessPowerToggle = default(StatelessPowerToggleForDashboard), PlayPause playPause = default(PlayPause), PlayStop playStop = default(PlayStop), string group = "main", string capability = default(string), int version = 1, string component = "main", VisibleCondition visibleCondition = default(VisibleCondition)) { this.DisplayType = displayType; // to ensure "capability" is required (not null) if (capability == null) { throw new ArgumentNullException("capability is a required property for ActionsArrayItem and cannot be null"); } this.Capability = capability; this.PushButton = pushButton; this.ToggleSwitch = toggleSwitch; this.Switch = _switch; this.StandbyPowerSwitch = standbyPowerSwitch; this.StatelessPowerToggle = statelessPowerToggle; this.PlayPause = playPause; this.PlayStop = playStop; // use default value if no "group" provided this.Group = group ?? "main"; this._Version = version; // use default value if no "component" provided this.Component = component ?? "main"; this.VisibleCondition = visibleCondition; }
/// <summary> /// Initializes a new instance of the <see cref="ActionItemAllOf" /> class. /// </summary> /// <param name="displayType">Specify the type of UI component to use to display this action or state. The corresponding field must also be included. For example, if you specify \"switch\" here, you must also include the \"switch\" key and its object definition for this action or state. (required).</param> /// <param name="pushButton">pushButton.</param> /// <param name="toggleSwitch">toggleSwitch.</param> /// <param name="_switch">_switch.</param> /// <param name="standbyPowerSwitch">standbyPowerSwitch.</param> /// <param name="playPause">playPause.</param> /// <param name="playStop">playStop.</param> /// <param name="group">The group name to which this belongs. Some complex devices can be shown grouped in the dashboard card. This is used for grouping states and actions in the dashboard..</param> public ActionItemAllOf(DisplayTypeEnum displayType = default(DisplayTypeEnum), PushButton pushButton = default(PushButton), ToggleSwitchForDashboard toggleSwitch = default(ToggleSwitchForDashboard), SwitchForDashboard _switch = default(SwitchForDashboard), StandbyPowerSwitchForDashboard standbyPowerSwitch = default(StandbyPowerSwitchForDashboard), PlayPause playPause = default(PlayPause), PlayStop playStop = default(PlayStop), string group = default(string)) { this.DisplayType = displayType; this.PushButton = pushButton; this.ToggleSwitch = toggleSwitch; this.Switch = _switch; this.StandbyPowerSwitch = standbyPowerSwitch; this.PlayPause = playPause; this.PlayStop = playStop; this.Group = group; }
/// <summary> /// Initializes a new instance of the <see cref="ActionItem" /> class. /// </summary> /// <param name="displayType">Specify the type of UI component to use to display this action or state. The corresponding field must also be included. For example, if you specify \"switch\" here, you must also include the \"switch\" key and its object definition for this action or state. (required).</param> /// <param name="pushButton">pushButton.</param> /// <param name="toggleSwitch">toggleSwitch.</param> /// <param name="_switch">_switch.</param> /// <param name="standbyPowerSwitch">standbyPowerSwitch.</param> /// <param name="playPause">playPause.</param> /// <param name="playStop">playStop.</param> /// <param name="group">The group name to which this belongs. Some complex devices can be shown grouped in the dashboard card. This is used for grouping states and actions in the dashboard..</param> public ActionItem(DisplayTypeEnum displayType = default(DisplayTypeEnum), PushButton pushButton = default(PushButton), ToggleSwitchForDashboard toggleSwitch = default(ToggleSwitchForDashboard), SwitchForDashboard _switch = default(SwitchForDashboard), StandbyPowerSwitchForDashboard standbyPowerSwitch = default(StandbyPowerSwitchForDashboard), PlayPause playPause = default(PlayPause), PlayStop playStop = default(PlayStop), string group = default(string)) : base() { }
/// <summary> /// Initializes a new instance of the <see cref="ActionsArrayItem" /> class. /// </summary> /// <param name="displayType">Specify the type of UI component to use to display this action or state. The corresponding field must also be included. For example, if you specify \"switch\" here, you must also include the \"switch\" key and its object definition for this action or state. (required).</param> /// <param name="pushButton">pushButton.</param> /// <param name="toggleSwitch">toggleSwitch.</param> /// <param name="_switch">_switch.</param> /// <param name="standbyPowerSwitch">standbyPowerSwitch.</param> /// <param name="playPause">playPause.</param> /// <param name="playStop">playStop.</param> /// <param name="group">The group name to which this belongs. Some complex devices can be shown grouped in the dashboard card. This is used for grouping states and actions in the dashboard..</param> /// <param name="capability">capability (required).</param> /// <param name="version">The version number of the capability. (default to 1).</param> /// <param name="component">component.</param> /// <param name="visibleCondition">visibleCondition.</param> public ActionsArrayItem(DisplayTypeEnum displayType = default(DisplayTypeEnum), PushButton pushButton = default(PushButton), ToggleSwitchForDashboard toggleSwitch = default(ToggleSwitchForDashboard), SwitchForDashboard _switch = default(SwitchForDashboard), StandbyPowerSwitchForDashboard standbyPowerSwitch = default(StandbyPowerSwitchForDashboard), PlayPause playPause = default(PlayPause), PlayStop playStop = default(PlayStop), string group = default(string), string capability = default(string), int version = 1, string component = default(string), VisibleCondition visibleCondition = default(VisibleCondition)) { this.DisplayType = displayType; // to ensure "capability" is required (not null) this.Capability = capability ?? throw new ArgumentNullException("capability is a required property for ActionsArrayItem and cannot be null"); this.PushButton = pushButton; this.ToggleSwitch = toggleSwitch; this.Switch = _switch; this.StandbyPowerSwitch = standbyPowerSwitch; this.PlayPause = playPause; this.PlayStop = playStop; this.Group = group; this.Version = version; this.Component = component; this.VisibleCondition = visibleCondition; }