So I'm trying to understand clean architecture principles.
One of the most confusing for me is the UseCase layer. I have read a lot of explanation about what is that, but I still can not decide how many use cases should I create from 1 requirement...
My current problem is, I have a Firestore and Room database. I store the last update date in Firestore as well as in Room.
In MainActivityViewModel I want to compare the local and remote update dates, and if it is required, I want to update the local tables.
Currently I have two use cases, but I could be 3 or 1, based on how I should separate them.
The first useCase gets the remote and local dates, and it creates a list of table names which needed to be updated.
The second UseCase basically grabs the result from the first one, updates the tables and the dates in local database.
My opinion is I need only 1 useCase which updates the tables if needed based on the local and remote dates.
Am I right? Or what is the "rule" regarding to useCases?