protected override void ResolveInteractionResult(MessageInteraction interactionResult) { switch (interactionResult.Response) { case MessageResponse.Yes: RaiseIsDone(ResponseStatus.Success); return; case MessageResponse.No: _currentSettingsProvider.Reset(); RaiseIsDone(ResponseStatus.Skip); return; case MessageResponse.Cancel: default: RaiseIsDone(ResponseStatus.Cancel); return; } }
private void ResolveInteractionResult(MessageInteraction interactionResult) { var macroResult = ResponseStatus.Success; switch (interactionResult.Response) { case MessageResponse.Yes: macroResult = ResponseStatus.Success; break; case MessageResponse.No: _currentSettingsProvider.Reset(); macroResult = ResponseStatus.Skip; break; case MessageResponse.Cancel: macroResult = ResponseStatus.Cancel; break; } IsDone?.Invoke(this, new MacroCommandIsDoneEventArgs(macroResult)); }
public void Execute(object parameter) { _currentSettingsProvider.Reset(); }