Skip to content

Instantly share code, notes, and snippets.

@douglasiacovelli
Last active August 22, 2019 14:47
Show Gist options
  • Save douglasiacovelli/04820e0f307d5b8277cd79ba8529122c to your computer and use it in GitHub Desktop.
Save douglasiacovelli/04820e0f307d5b8277cd79ba8529122c to your computer and use it in GitHub Desktop.
class WorkflowRepository(private val service: WorkflowService) {
override fun submit(answers: List<Answer>): Single<MyResponse> {
val formBody = FormBody.Builder()
answers.forEach {
formBody.add(it.key, it.value)
}
return service.submit(formBody.build())
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment