android10 / Android-CleanArchitecture-Kotlin

This is a movies sample app in Kotlin, which is part of a serie of blog posts I have written about architecting android application using different approaches.
https://fernandocejas.com/2018/05/07/architecting-android-reloaded/
4.69k stars 935 forks source link

Question : How to tidy up the different data models in each feature. #119

Open axel-legue opened 2 years ago

axel-legue commented 2 years ago

I would like to know what is the correct way to organize the different Models that represent the same Object in the different Layer of the application. For example in the feature "Movies" I see you put all your Data class related to Movie in the same package without hierarchy. MovieEntity from the Api Movie from repository Then MovieView from the ViewModel.

Do you have any tips on how and where to handle all this models.

Thanks.