Slide 25
Slide 25 text
fun registerUser(fullName : String , email :String,password : String){
try {
val response = registerRequest(fullName, email, password)
if (response!!.isSuccessful){
saveUserDetails(response.body())
proceedToDashBoard()
}else{
showError("An error occurred")
}
}catch (error : IOException){
Log.d("Error",error.message)
}
}