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.
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.
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.