Created
November 20, 2019 20:28
-
-
Save elihart/96e96a9789541c343bd2958a03e693af to your computer and use it in GitHub Desktop.
MvRxViewModelTextLoadExample
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
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