Cyberpunk Keanu
11/19/2019, 1:16 PMoverride fun onResponse(call: Call<T>, response: Response<T>){
if(response.isSuccessful){
// Do something meaningful logic
} else {
// Do some Logic which handles the error
}
override onFailure(call: Call<T>, t: Throwable){
// Handle Logs
}
Now that these two callbacks are gone, as you know if you've read the article above, how do I handle the if(response.isSuccessful) { //DO THIS } else { //DO THAT } Logic? Any Ideas?
(P.S. A better understanding of my question will be possible after reading the article mentioned below)