Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PlayStopAllOf" /> class.
 /// </summary>
 /// <param name="state">state (required).</param>
 public PlayStopAllOf(PlayStopAllOfState state = default(PlayStopAllOfState))
 {
     // to ensure "state" is required (not null)
     if (state == null)
     {
         throw new ArgumentNullException("state is a required property for PlayStopAllOf and cannot be null");
     }
     this.State = state;
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PlayStop" /> class.
 /// </summary>
 /// <param name="command">command (required).</param>
 /// <param name="state">state (required).</param>
 public PlayStop(PlayStopCommandCommand command = default(PlayStopCommandCommand), PlayStopAllOfState state = default(PlayStopAllOfState))
 {
     // to ensure "command" is required (not null)
     if (command == null)
     {
         throw new ArgumentNullException("command is a required property for PlayStop and cannot be null");
     }
     this.Command = command;
     // to ensure "state" is required (not null)
     if (state == null)
     {
         throw new ArgumentNullException("state is a required property for PlayStop and cannot be null");
     }
     this.State = state;
 }