Skip to content

Instantly share code, notes, and snippets.

@elihart
Created November 20, 2019 20:28
Show Gist options
  • Save elihart/96e96a9789541c343bd2958a03e693af to your computer and use it in GitHub Desktop.
Save elihart/96e96a9789541c343bd2958a03e693af to your computer and use it in GitHub Desktop.
MvRxViewModelTextLoadExample
fun loadText(textId: Long) {
buildRequest<String>(
path = "text/endpoint",
params = {
kv("id", textId)
}
).execute {
copy(text = it)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment