/// <summary> /// Initializes a new instance of the <see cref="SwitchStateForDashboard" /> class. /// </summary> /// <param name="state">state.</param> public SwitchStateForDashboard(SwitchStateForDashboardState state = default(SwitchStateForDashboardState)) { 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() { }
/// <summary> /// Initializes a new instance of the <see cref="SwitchForDashboard" /> class. /// </summary> /// <param name="command">command (required).</param> /// <param name="state">state.</param> public SwitchForDashboard(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 SwitchForDashboard and cannot be null"); } this.Command = command; this.State = state; }
/// <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() { }