Data mappers in Presentation layer

Viewed 672

I have been developing an android application using Clean Architecture and I am reading that it is a good practice to use different objects for each layer. But, I am doing this in my application and i am not sure If I should make entities for each layer (data, domain and presentation) and a mapper for each one.

I always had been using mapper and entities for data layer and "mapping" these objects to java objects in domain layer and passing these objects to presentation, so what is the best way to do this? I mean, what is the best practice to use in Clean architecture and following the data flow from data layer (getting data from API, for example) and finally showing this data in UI.

Thanks!

0 Answers
Related