Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
.enqueue(object : Callback<ResponseBody> {
override fun onFailure(call: Call<ResponseBody>, t: Throwable) {
println("---TTTT :: GET Throwable EXCEPTION:: " + t.message)
override fun onResponse(call: Call<ResponseBody>, response: Response<ResponseBody>) {
if (response.isSuccessful) {
val msg = response.body()?.string()
println("---TTTT :: GET msg from server :: " + msg)
Toast.makeText(applicationContext, msg, Toast.LENGTH_SHORT).show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.