Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
class ActionExecutor {
private val allActions = mutableMapOf<String, Action>()
fun addAction(action: Action) {
allActions[] = action
fun executeByResponse(response: Response) {
val action = allActions[response.action]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment