Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PlayPause" /> class.
 /// </summary>
 /// <param name="command">command (required).</param>
 /// <param name="state">state.</param>
 public PlayPause(PlayPauseCommandCommand command = default(PlayPauseCommandCommand), PlayPauseAllOfState state = default(PlayPauseAllOfState))
 {
     // to ensure "command" is required (not null)
     if (command == null)
     {
         throw new ArgumentNullException("command is a required property for PlayPause and cannot be null");
     }
     this.Command = command;
     this.State   = state;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PlayPauseAllOf" /> class.
 /// </summary>
 /// <param name="state">state.</param>
 public PlayPauseAllOf(PlayPauseAllOfState state = default(PlayPauseAllOfState))
 {
     this.State = state;
 }