I have a method that calls three(foo1(), foo2(), foo3()) api method inside it and each method is dependant on another method's response. I want to call foo1() and when it get response from api then call the foo2() and so on. I am eleborating the process below :
Now how to acheive the above senario using retrofit asynchronous calling. I can't break method CreateOrder() into three.