hi everyone! I'm in a little dilemma regarding app...
# android
j
hi everyone! I'm in a little dilemma regarding app architecture, maybe some of you could help me decide which option is a better approach. In the data layer I need to perform a validation whenever I get a specific response from a remote data source (namely a 403 HTTP response), depending on this validation I then have to call a repository to perform another operation as well as to keep track of retries and other stuff. The thing is that I'm not really sure if I should create a use case to wrap that logic, in which case the data layer would have a dependency on the domain layer, or just keep the logic in the data layer in some sort of utils class that I can call when I get the 403. You're opinions would be greatly appreciated, thanks in advance. ps: It's worth noting that the validation happens in an HttpClient class where we map every HTTP response into a model that represents succeeded of failed requests e.g. RequestResponse.Success etc.
😶 1