I have the following classes: Client, DAO Client and DAO.
In the Client template I have the attributes and the gets / sets.
In the ADOUNT I have the methods save (), change (), ... ie the crud. This class assembles a string with the parameters and sends it to DAO.
In DAO it is a class that has the methods of the Volley library that makes the connections with the web service. After sending it it receives a JSON as a response and sends it to the DAO client which handles this JSON transforming into an object using the Gson library and then returns the object to the class it requested.
The DAO class is a class that is used by all classes that require a webserver connection.
Is this logic correct? Because the following problem occurs to me:
Suppose I make a call to the CustomerData class that its return will include the user name in a TextView. It turns out that the application will be locked until you get this return.
How can I resolve this?
Thank you.