コード例 #1
0
 /// <inheritdoc/>
 IAction ISetState <IAction> .SetState(dynamic state)
 {
     _currentAction       = new FluentAction(FluentActionType.SetState);
     _currentAction.State = state;
     _actions.Enqueue(_currentAction);
     return(this);
 }
コード例 #2
0
 /// <inheritdoc/>
 public IMediaPlayerExecuteAsync PlayPause()
 {
     _currentAction = new FluentAction(FluentActionType.PlayPause);
     return(this);
 }
コード例 #3
0
 /// <inheritdoc/>
 public IAction TurnOn()
 {
     _currentAction = new FluentAction(FluentActionType.TurnOn);
     _actions.Enqueue(_currentAction);
     return(this);
 }
コード例 #4
0
 /// <inheritdoc/>
 public IMediaPlayerExecuteAsync Stop()
 {
     _currentAction = new FluentAction(FluentActionType.Stop);
     return(this);
 }
コード例 #5
0
 /// <inheritdoc/>
 public IMediaPlayerExecuteAsync Speak(string message)
 {
     _currentAction = new FluentAction(FluentActionType.Speak);
     _currentAction.MessageToSpeak = message;
     return(this);
 }