Last active
August 22, 2019 14:47
-
-
Save douglasiacovelli/04820e0f307d5b8277cd79ba8529122c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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