I have an api that gives result in something like:
if okay : OK ID:1234567
not okay: 2 <br>(Please Type something)
Now i want to receive this in my android app using retrofit , one way i can think of is getting response in String
and manually checking about error or not error scenario , But i cannot find a better way to do this :
These SO question are not explaining the solution enough to replicate: Q1 , Q2 , Q3