Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SwitchCommand" /> class.
 /// </summary>
 /// <param name="command">command (required).</param>
 public SwitchCommand(SwitchCommandCommand command = default(SwitchCommandCommand))
 {
     // to ensure "command" is required (not null)
     if (command == null)
     {
         throw new ArgumentNullException("command is a required property for SwitchCommand and cannot be null");
     }
     this.Command = command;
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="StandbyPowerSwitch" /> class.
 /// </summary>
 /// <param name="command">command (required).</param>
 /// <param name="state">state.</param>
 public StandbyPowerSwitch(SwitchCommandCommand command = default(SwitchCommandCommand), SwitchStateState state = default(SwitchStateState))
 {
     // to ensure "command" is required (not null)
     if (command == null)
     {
         throw new ArgumentNullException("command is a required property for StandbyPowerSwitch and cannot be null");
     }
     this.Command = command;
     this.State   = state;
 }
Esempio n. 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ToggleSwitchForDashboard" /> class.
 /// </summary>
 /// <param name="command">command (required).</param>
 /// <param name="state">state.</param>
 public ToggleSwitchForDashboard(SwitchCommandCommand command = default(SwitchCommandCommand), SwitchStateForDashboardState state = default(SwitchStateForDashboardState))
 {
     // to ensure "command" is required (not null)
     if (command == null)
     {
         throw new ArgumentNullException("command is a required property for ToggleSwitchForDashboard and cannot be null");
     }
     this.Command = command;
     this.State   = state;
 }
Esempio n. 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SwitchObj" /> class.
 /// </summary>
 /// <param name="command">command (required).</param>
 /// <param name="state">state.</param>
 public SwitchObj(SwitchCommandCommand command = default(SwitchCommandCommand), SwitchStateState state = default(SwitchStateState))
 {
     // to ensure "command" is required (not null)
     this.Command = command ?? throw new ArgumentNullException("command is a required property for SwitchObj and cannot be null");
     this.State   = state;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="StandbyPowerSwitchForDashboard" /> class.
 /// </summary>
 /// <param name="command">command (required).</param>
 /// <param name="state">state.</param>
 public StandbyPowerSwitchForDashboard(SwitchCommandCommand command = default(SwitchCommandCommand), SwitchStateForDashboardState state = default(SwitchStateForDashboardState)) : base()
 {
 }
Esempio n. 6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ToggleSwitchForDashboard" /> class.
 /// </summary>
 /// <param name="command">command (required).</param>
 /// <param name="state">state.</param>
 public ToggleSwitchForDashboard(SwitchCommandCommand command = default(SwitchCommandCommand), SwitchStateForDashboardState state = default(SwitchStateForDashboardState)) : base()
 {
 }