/// <summary>
 /// Initializes a new instance of the <see cref="MultiArgCommandArguments" /> 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="_switch">_switch.</param>
 /// <param name="slider">slider.</param>
 /// <param name="list">list.</param>
 /// <param name="textField">textField.</param>
 /// <param name="numberField">numberField.</param>
 public MultiArgCommandArguments(DisplayTypeEnum displayType = default(DisplayTypeEnum), SwitchForArgument _switch = default(SwitchForArgument), SliderForArgument slider = default(SliderForArgument), ListForArgument list = default(ListForArgument), TextFieldForArgument textField = default(TextFieldForArgument), NumberFieldForArgument numberField = default(NumberFieldForArgument))
 {
     this.DisplayType = displayType;
     this.Switch      = _switch;
     this.Slider      = slider;
     this.List        = list;
     this.TextField   = textField;
     this.NumberField = numberField;
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MultiArgCommandArguments" /> 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 \&quot;list\&quot; here, you must also include the \&quot;list\&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>
 public MultiArgCommandArguments(string label = default(string), DisplayTypeEnum displayType = default(DisplayTypeEnum), SliderForArgument slider = default(SliderForArgument), ListForArgument list = default(ListForArgument), TextFieldForArgument textField = default(TextFieldForArgument), NumberFieldForArgument numberField = default(NumberFieldForArgument))
 {
     // to ensure "label" is required (not null)
     if (label == null)
     {
         throw new ArgumentNullException("label is a required property for MultiArgCommandArguments and cannot be null");
     }
     this.Label       = label;
     this.DisplayType = displayType;
     this.Slider      = slider;
     this.List        = list;
     this.TextField   = textField;
     this.NumberField = numberField;
 }