Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PlayPauseCommand" /> class.
 /// </summary>
 /// <param name="command">command (required).</param>
 public PlayPauseCommand(PlayPauseCommandCommand command = default(PlayPauseCommandCommand))
 {
     // to ensure "command" is required (not null)
     if (command == null)
     {
         throw new ArgumentNullException("command is a required property for PlayPauseCommand and cannot be null");
     }
     this.Command = command;
 }
Beispiel #2
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;
 }