<How do I get the value out of the onResponse func...
# stackoverflow
u
How do I get the value out of the onResponse function of retrofit to return it in the outer class The below is my code where im trying to return false whenever the body is not empty, but the variable blocker is not overwritten when the body has content in it. The code itself is working but it seems to not get the Code out of the onResponse method. private fun checkTime(date : String, time : String): Boolean { val blocker = true val checkapt = ReservationBySalon( listOf(CheckApt( hairdresser_key = "asru6sxqrifl", date = date,...