Skip to content

Instantly share code, notes, and snippets.

@digitalbuddha
Created December 12, 2017 14:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save digitalbuddha/48a7758f68ef4b4a323d18f1d03dfe2d to your computer and use it in GitHub Desktop.
Save digitalbuddha/48a7758f68ef4b4a323d18f1d03dfe2d to your computer and use it in GitHub Desktop.
API.submit(request) }
.subscribeOn(Schedulers.io())
.observeOn(Schedulers.io())
.subscribe({
Timber.e("Submit:Success:" + it.success)
if (it.success) {
dispatcher.dispatchShow(Showing.Success(resultData))
} else {
dispatcher.dispatchShow(Showing.Failure(resultData))
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment