コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ActionListItemAllOf" /> class.
 /// </summary>
 /// <param name="component">component (default to &quot;main&quot;).</param>
 /// <param name="visibleCondition">visibleCondition.</param>
 /// <param name="exclusion">To exclude specified automation in &#x60;exclude&#x60; when this item is selected by the user..</param>
 public ActionListItemAllOf(string component = "main", VisibleCondition visibleCondition = default(VisibleCondition), List <ExcludedActionItem> exclusion = default(List <ExcludedActionItem>))
 {
     // use default value if no "component" provided
     this.Component        = component ?? "main";
     this.VisibleCondition = visibleCondition;
     this.Exclusion        = exclusion;
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ActionsArrayItemAllOf" /> class.
 /// </summary>
 /// <param name="component">component (default to &quot;main&quot;).</param>
 /// <param name="visibleCondition">visibleCondition.</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 &quot;main&quot;).</param>
 public ActionsArrayItemAllOf(string component = "main", VisibleCondition visibleCondition = default(VisibleCondition), string group = "main")
 {
     // use default value if no "component" provided
     this.Component        = component ?? "main";
     this.VisibleCondition = visibleCondition;
     // use default value if no "group" provided
     this.Group = group ?? "main";
 }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CameraOverlayIcons" /> class.
 /// </summary>
 /// <param name="iconUrl">Icon Id used to retrieve a overlay icon to be drawn on the camera card. (required).</param>
 /// <param name="visibleCondition">visibleCondition.</param>
 public CameraOverlayIcons(string iconUrl = default(string), VisibleCondition visibleCondition = default(VisibleCondition))
 {
     // to ensure "iconUrl" is required (not null)
     if (iconUrl == null)
     {
         throw new ArgumentNullException("iconUrl is a required property for CameraOverlayIcons and cannot be null");
     }
     this.IconUrl          = iconUrl;
     this.VisibleCondition = visibleCondition;
 }
コード例 #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="StatesArrayItemAllOf" /> class.
 /// </summary>
 /// <param name="component">component (required) (default to &quot;main&quot;).</param>
 /// <param name="visibleCondition">visibleCondition.</param>
 /// <param name="composite">To specify composite use of different state items. If composite is true, multiple states items in the same group are combined to a label. (default to false).</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 &quot;main&quot;).</param>
 /// <param name="formatInfo">formatInfo.</param>
 public StatesArrayItemAllOf(string component = "main", VisibleCondition visibleCondition = default(VisibleCondition), bool composite = false, string group = "main", List <Object> formatInfo = default(List <Object>))
 {
     // to ensure "component" is required (not null)
     if (component == null)
     {
         throw new ArgumentNullException("component is a required property for StatesArrayItemAllOf and cannot be null");
     }
     this.Component        = component;
     this.VisibleCondition = visibleCondition;
     this.Composite        = composite;
     // use default value if no "group" provided
     this.Group      = group ?? "main";
     this.FormatInfo = formatInfo;
 }
コード例 #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="StatesArrayItemAllOf" /> class.
 /// </summary>
 /// <param name="component">component (required).</param>
 /// <param name="visibleCondition">visibleCondition.</param>
 public StatesArrayItemAllOf(string component = default(string), VisibleCondition visibleCondition = default(VisibleCondition))
 {
     // to ensure "component" is required (not null)
     this.Component        = component ?? throw new ArgumentNullException("component is a required property for StatesArrayItemAllOf and cannot be null");
     this.VisibleCondition = visibleCondition;
 }
コード例 #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DeviceConfigEntryForDashboardAction" /> class.
 /// </summary>
 /// <param name="component">component (required).</param>
 /// <param name="capability">capability (required).</param>
 /// <param name="version">The version number of the capability. (default to 1).</param>
 /// <param name="visibleCondition">visibleCondition.</param>
 /// <param name="idx">An index among the multiple items of dashboard provided in the capability presentation. (default to 0).</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 &quot;main&quot;).</param>
 public DeviceConfigEntryForDashboardAction(string component = default(string), string capability = default(string), int version = 1, VisibleCondition visibleCondition = default(VisibleCondition), int idx = 0, string group = "main")
 {
     // to ensure "component" is required (not null)
     if (component == null)
     {
         throw new ArgumentNullException("component is a required property for DeviceConfigEntryForDashboardAction and cannot be null");
     }
     this.Component = component;
     // to ensure "capability" is required (not null)
     if (capability == null)
     {
         throw new ArgumentNullException("capability is a required property for DeviceConfigEntryForDashboardAction and cannot be null");
     }
     this.Capability       = capability;
     this._Version         = version;
     this.VisibleCondition = visibleCondition;
     this.Idx = idx;
     // use default value if no "group" provided
     this.Group = group ?? "main";
 }
コード例 #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="StatesArrayItem" /> class.
 /// </summary>
 /// <param name="label">This displays a string. This can be a formatted string with variables. Example: &#x60;{{attribute.value}} {{attribute.unit}}&#x60; (where &#x60;attribute&#x60; is the name of an attribute in your capability)  (required).</param>
 /// <param name="alternatives">A collection of strings that can replace the attribute value in the &#x60;label&#x60; or &#x60;value&#x60;. Must be human-readable for the UI client to display..</param>
 /// <param name="capability">capability (required).</param>
 /// <param name="version">The version number of the capability. (default to 1).</param>
 /// <param name="component">component (required) (default to &quot;main&quot;).</param>
 /// <param name="visibleCondition">visibleCondition.</param>
 /// <param name="composite">To specify composite use of different state items. If composite is true, multiple states items in the same group are combined to a label. (default to false).</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 &quot;main&quot;).</param>
 /// <param name="formatInfo">formatInfo.</param>
 public StatesArrayItem(string label = default(string), List <AlternativeItem> alternatives = default(List <AlternativeItem>), string capability = default(string), int version = 1, string component = "main", VisibleCondition visibleCondition = default(VisibleCondition), bool composite = false, string group = "main", List <Object> formatInfo = default(List <Object>))
 {
     // to ensure "label" is required (not null)
     if (label == null)
     {
         throw new ArgumentNullException("label is a required property for StatesArrayItem and cannot be null");
     }
     this.Label = label;
     // to ensure "capability" is required (not null)
     if (capability == null)
     {
         throw new ArgumentNullException("capability is a required property for StatesArrayItem and cannot be null");
     }
     this.Capability = capability;
     // to ensure "component" is required (not null)
     if (component == null)
     {
         throw new ArgumentNullException("component is a required property for StatesArrayItem and cannot be null");
     }
     this.Component        = component;
     this.Alternatives     = alternatives;
     this._Version         = version;
     this.VisibleCondition = visibleCondition;
     this.Composite        = composite;
     // use default value if no "group" provided
     this.Group      = group ?? "main";
     this.FormatInfo = formatInfo;
 }
コード例 #8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ActionsArrayItemAllOf" /> class.
 /// </summary>
 /// <param name="component">component.</param>
 /// <param name="visibleCondition">visibleCondition.</param>
 public ActionsArrayItemAllOf(string component = default(string), VisibleCondition visibleCondition = default(VisibleCondition))
 {
     this.Component = component;
     this.VisibleCondition = visibleCondition;
 }
コード例 #9
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ExcludedDeviceActionConfigEntry" /> class.
 /// </summary>
 /// <param name="component">component (required).</param>
 /// <param name="capability">capability (required).</param>
 /// <param name="version">The version number of the capability. (default to 1).</param>
 /// <param name="visibleCondition">visibleCondition.</param>
 /// <param name="values">A list of valid values for the command argument or attribute that can override those defined by the alternatives provided in the capability presentation..</param>
 /// <param name="patch">A format which is applied some operations(add / replace / remove) from the rfc6902(https://tools.ietf.org/html/rfc6902#section-4). Please note that array in the patch is sequentially processed..</param>
 /// <param name="exclusion">To exclude specified automation in &#x60;exclude&#x60; when this item is selected by the user..</param>
 public ExcludedDeviceActionConfigEntry(string component = default(string), string capability = default(string), int version = 1, VisibleCondition visibleCondition = default(VisibleCondition), List <CapabilityValue> values = default(List <CapabilityValue>), List <PatchItem> patch = default(List <PatchItem>), List <ExcludedActionItemId> exclusion = default(List <ExcludedActionItemId>))
 {
     // to ensure "component" is required (not null)
     if (component == null)
     {
         throw new ArgumentNullException("component is a required property for ExcludedDeviceActionConfigEntry and cannot be null");
     }
     this.Component = component;
     // to ensure "capability" is required (not null)
     if (capability == null)
     {
         throw new ArgumentNullException("capability is a required property for ExcludedDeviceActionConfigEntry and cannot be null");
     }
     this.Capability       = capability;
     this._Version         = version;
     this.VisibleCondition = visibleCondition;
     this.Values           = values;
     this.Patch            = patch;
     this.Exclusion        = exclusion;
 }
コード例 #10
0
 /// <summary>
 /// Initializes a new instance of the <see cref="StatesArrayItem" /> class.
 /// </summary>
 /// <param name="label">This displays a string. This can be a formatted string with variables. Example: &#x60;{{attribute.value}} {{attribute.unit}}&#x60; (where &#x60;attribute&#x60; is the name of an attribute in your capability)  (required).</param>
 /// <param name="alternatives">A collection of strings that can replace the attribute value in the &#x60;label&#x60; or &#x60;value&#x60;. Must be human-readable for the UI client to display..</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 (required).</param>
 /// <param name="visibleCondition">visibleCondition.</param>
 public StatesArrayItem(string label = default(string), List <AlternativeItem> alternatives = default(List <AlternativeItem>), string group = default(string), string capability = default(string), int version = 1, string component = default(string), VisibleCondition visibleCondition = default(VisibleCondition))
 {
     // to ensure "label" is required (not null)
     this.Label = label ?? throw new ArgumentNullException("label is a required property for StatesArrayItem and cannot be null");
     // to ensure "capability" is required (not null)
     this.Capability = capability ?? throw new ArgumentNullException("capability is a required property for StatesArrayItem and cannot be null");
     // to ensure "component" is required (not null)
     this.Component        = component ?? throw new ArgumentNullException("component is a required property for StatesArrayItem and cannot be null");
     this.Alternatives     = alternatives;
     this.Group            = group;
     this.Version          = version;
     this.VisibleCondition = visibleCondition;
 }
コード例 #11
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DetailViewListItemAllOf" /> class.
 /// </summary>
 /// <param name="component">component (default to &quot;main&quot;).</param>
 /// <param name="visibleCondition">visibleCondition.</param>
 public DetailViewListItemAllOf(string component = "main", VisibleCondition visibleCondition = default(VisibleCondition))
 {
     // use default value if no "component" provided
     this.Component        = component ?? "main";
     this.VisibleCondition = visibleCondition;
 }
コード例 #12
0
 /// <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 \&quot;switch\&quot; here, you must also include the \&quot;switch\&quot; 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;
 }
コード例 #13
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DetailViewListItemAllOf" /> class.
 /// </summary>
 /// <param name="component">component.</param>
 /// <param name="visibleCondition">visibleCondition.</param>
 public DetailViewListItemAllOf(string component = default(string), VisibleCondition visibleCondition = default(VisibleCondition))
 {
     this.Component        = component;
     this.VisibleCondition = visibleCondition;
 }
コード例 #14
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BasicPlusItem" /> 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 \&quot;switch\&quot; here, you must also include the \&quot;switch\&quot; 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>
 public BasicPlusItem(DisplayTypeEnum displayType = default(DisplayTypeEnum), Stepper stepper = default(Stepper), List <Object> feature = default(List <Object>), VisibleCondition visibleCondition = default(VisibleCondition))
 {
     this.DisplayType      = displayType;
     this.Stepper          = stepper;
     this.Feature          = feature;
     this.VisibleCondition = visibleCondition;
 }
コード例 #15
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DeviceConfigEntryForDashboardState" /> class.
 /// </summary>
 /// <param name="component">component (required).</param>
 /// <param name="capability">capability (required).</param>
 /// <param name="version">The version number of the capability. (default to 1).</param>
 /// <param name="visibleCondition">visibleCondition.</param>
 /// <param name="idx">An index among the multiple items of dashboard provided in the capability presentation. (default to 0).</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 &quot;main&quot;).</param>
 /// <param name="values">A list of valid values for the command argument or attribute that can override those defined by the alternatives provided in the capability presentation..</param>
 /// <param name="composite">To specify composite use of different state items. If composite is true, multiple states items in the same group are combined to a label. (default to false).</param>
 /// <param name="formatInfo">formatInfo.</param>
 public DeviceConfigEntryForDashboardState(string component = default(string), string capability = default(string), int version = 1, VisibleCondition visibleCondition = default(VisibleCondition), int idx = 0, string group = "main", List <CapabilityValueForDashboardState> values = default(List <CapabilityValueForDashboardState>), bool composite = false, List <Object> formatInfo = default(List <Object>))
 {
     // to ensure "component" is required (not null)
     if (component == null)
     {
         throw new ArgumentNullException("component is a required property for DeviceConfigEntryForDashboardState and cannot be null");
     }
     this.Component = component;
     // to ensure "capability" is required (not null)
     if (capability == null)
     {
         throw new ArgumentNullException("capability is a required property for DeviceConfigEntryForDashboardState and cannot be null");
     }
     this.Capability       = capability;
     this._Version         = version;
     this.VisibleCondition = visibleCondition;
     this.Idx = idx;
     // use default value if no "group" provided
     this.Group      = group ?? "main";
     this.Values     = values;
     this.Composite  = composite;
     this.FormatInfo = formatInfo;
 }
コード例 #16
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DeviceConfigEntryBase" /> class.
 /// </summary>
 /// <param name="component">component (required).</param>
 /// <param name="capability">capability (required).</param>
 /// <param name="version">The version number of the capability. (default to 1).</param>
 /// <param name="visibleCondition">visibleCondition.</param>
 public DeviceConfigEntryBase(string component = default(string), string capability = default(string), int version = 1, VisibleCondition visibleCondition = default(VisibleCondition))
 {
     // to ensure "component" is required (not null)
     if (component == null)
     {
         throw new ArgumentNullException("component is a required property for DeviceConfigEntryBase and cannot be null");
     }
     this.Component = component;
     // to ensure "capability" is required (not null)
     if (capability == null)
     {
         throw new ArgumentNullException("capability is a required property for DeviceConfigEntryBase and cannot be null");
     }
     this.Capability       = capability;
     this._Version         = version;
     this.VisibleCondition = visibleCondition;
 }
コード例 #17
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DeviceConfigEntry" /> class.
 /// </summary>
 /// <param name="component">component (required).</param>
 /// <param name="capability">capability (required).</param>
 /// <param name="version">The version number of the capability. (default to 1).</param>
 /// <param name="values">A list of valid values for the command argument or attribute that can override those defined by the alternatives provided in the capability presentation..</param>
 /// <param name="visibleCondition">visibleCondition.</param>
 public DeviceConfigEntry(string component = default(string), string capability = default(string), int version = 1, List <CapabilityValue> values = default(List <CapabilityValue>), VisibleCondition visibleCondition = default(VisibleCondition))
 {
     // to ensure "component" is required (not null)
     this.Component = component ?? throw new ArgumentNullException("component is a required property for DeviceConfigEntry and cannot be null");
     // to ensure "capability" is required (not null)
     this.Capability       = capability ?? throw new ArgumentNullException("capability is a required property for DeviceConfigEntry and cannot be null");
     this.Version          = version;
     this.Values           = values;
     this.VisibleCondition = visibleCondition;
 }
コード例 #18
0
 /// <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 \&quot;switch\&quot; here, you must also include the \&quot;switch\&quot; 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 &quot;main&quot;).</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 &quot;main&quot;).</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;
 }
コード例 #19
0
 /// <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 \&quot;switch\&quot; here, you must also include the \&quot;switch\&quot; 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 &quot;main&quot;).</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;
 }
コード例 #20
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AutomationListItem" /> 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 \&quot;switch\&quot; here, you must also include the \&quot;switch\&quot; key and its object definition for this action or state. (required).</param>
 /// <param name="slider">slider.</param>
 /// <param name="list">list.</param>
 /// <param name="numberField">numberField.</param>
 /// <param name="textField">textField.</param>
 /// <param name="enumSlider">enumSlider.</param>
 /// <param name="emphasis">The effect used to emphasize this resource widget. The default value is false. If the emphasis value is true and this object has alternatives, a list will appear without a label.</param>
 /// <param name="exclusion">To exclude specified automation in &#x60;exclude&#x60; when this item is selected by the user..</param>
 /// <param name="component">component (default to &quot;main&quot;).</param>
 /// <param name="visibleCondition">visibleCondition.</param>
 public AutomationListItem(string capability = default(string), int version = 1, string label = default(string), DisplayTypeEnum displayType = default(DisplayTypeEnum), SliderForAutomationCondition slider = default(SliderForAutomationCondition), ListForAutomationCondition list = default(ListForAutomationCondition), NumberFieldForAutomationCondition numberField = default(NumberFieldForAutomationCondition), TextFieldForAutomationCondition textField = default(TextFieldForAutomationCondition), EnumSliderForAutomationCondition enumSlider = default(EnumSliderForAutomationCondition), bool emphasis = default(bool), List <ExcludedConditionItem> exclusion = default(List <ExcludedConditionItem>), 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 AutomationListItem 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 AutomationListItem and cannot be null");
     }
     this.Label       = label;
     this.DisplayType = displayType;
     this._Version    = version;
     this.Slider      = slider;
     this.List        = list;
     this.NumberField = numberField;
     this.TextField   = textField;
     this.EnumSlider  = enumSlider;
     this.Emphasis    = emphasis;
     this.Exclusion   = exclusion;
     // use default value if no "component" provided
     this.Component        = component ?? "main";
     this.VisibleCondition = visibleCondition;
 }
コード例 #21
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ActionListItem" /> 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">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 \&quot;switch\&quot; here, you must also include the \&quot;switch\&quot; key and its object definition for this action or state. (required).</param>
 /// <param name="slider">slider.</param>
 /// <param name="list">list.</param>
 /// <param name="textField">textField.</param>
 /// <param name="numberField">numberField.</param>
 /// <param name="multiArgCommand">multiArgCommand.</param>
 /// <param name="emphasis">The effect used to emphasize this resource widget. The default value is false. If the emphasis value is true and this object has alternatives, a list will appear without a label.</param>
 /// <param name="component">component.</param>
 /// <param name="visibleCondition">visibleCondition.</param>
 public ActionListItem(string capability = default(string), int version = 1, string label = default(string), DisplayTypeEnum displayType = default(DisplayTypeEnum), SliderForAutomationAction slider = default(SliderForAutomationAction), ListForAutomationAction list = default(ListForAutomationAction), TextFieldForAutomationAction textField = default(TextFieldForAutomationAction), NumberFieldForAutomationAction numberField = default(NumberFieldForAutomationAction), MultiArgCommand multiArgCommand = default(MultiArgCommand), bool emphasis = default(bool), string component = default(string), VisibleCondition visibleCondition = default(VisibleCondition))
 {
     // to ensure "capability" is required (not null)
     this.Capability = capability ?? throw new ArgumentNullException("capability is a required property for ActionListItem and cannot be null");
     // to ensure "label" is required (not null)
     this.Label            = label ?? throw new ArgumentNullException("label is a required property for ActionListItem and cannot be null");
     this.DisplayType      = displayType;
     this.Version          = version;
     this.Slider           = slider;
     this.List             = list;
     this.TextField        = textField;
     this.NumberField      = numberField;
     this.MultiArgCommand  = multiArgCommand;
     this.Emphasis         = emphasis;
     this.Component        = component;
     this.VisibleCondition = visibleCondition;
 }
コード例 #22
0
 /// <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 \&quot;switch\&quot; here, you must also include the \&quot;switch\&quot; 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;
 }