Skip to content

Instantly share code, notes, and snippets.

@brianhsu
Created April 8, 2018 03:34
Show Gist options
  • Save brianhsu/0c5026646c848bf759479377a7932544 to your computer and use it in GitHub Desktop.
Save brianhsu/0c5026646c848bf759479377a7932544 to your computer and use it in GitHub Desktop.
class UserToJSONPresenter extends CreateUserPresenter {
private var mData: User = _
def onResult(user: User) {
mData = user
}
def toJSON = ???
}
val executor = new NoLogUseCaseExecutor
val useCase = new CreateUser(....)
val newUser = executor.execute(useCase, presenter)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment