/// <inheritdoc/> IAction ISetState <IAction> .SetState(dynamic state) { _currentAction = new FluentAction(FluentActionType.SetState); _currentAction.State = state; _actions.Enqueue(_currentAction); return(this); }
/// <inheritdoc/> public IMediaPlayerExecuteAsync PlayPause() { _currentAction = new FluentAction(FluentActionType.PlayPause); return(this); }
/// <inheritdoc/> public IAction TurnOn() { _currentAction = new FluentAction(FluentActionType.TurnOn); _actions.Enqueue(_currentAction); return(this); }
/// <inheritdoc/> public IMediaPlayerExecuteAsync Stop() { _currentAction = new FluentAction(FluentActionType.Stop); return(this); }
/// <inheritdoc/> public IMediaPlayerExecuteAsync Speak(string message) { _currentAction = new FluentAction(FluentActionType.Speak); _currentAction.MessageToSpeak = message; return(this); }