/// <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="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="BasicPlusArrayItem" /> 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="stepper">stepper.</param> /// <param name="feature">Including a basicPlus item with the “feature” display type adds a shortcut item to the desired detail view..</param> /// <param name="visibleCondition">visibleCondition.</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> public BasicPlusArrayItem(DisplayTypeEnum displayType = default(DisplayTypeEnum), Stepper stepper = default(Stepper), List <Object> feature = default(List <Object>), VisibleCondition visibleCondition = default(VisibleCondition), string capability = default(string), int version = 1, string component = default(string)) { this.DisplayType = displayType; // to ensure "capability" is required (not null) this.Capability = capability ?? throw new ArgumentNullException("capability is a required property for BasicPlusArrayItem and cannot be null"); this.Stepper = stepper; this.Feature = feature; this.VisibleCondition = visibleCondition; this.Version = version; this.Component = component; }