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