Skip to content

I want to know the difference between the entity class in model package under the data module and the entity class under the model module #728

Answered by tunjid
est7 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi there!

Breakdown

  • core.model.data.NewsResource: This is the news resource definition the app sees. This is the specification the entire app builds to. It is exposed from the data module because the entire app needs to know about it.
  • core.network.model.NetworkNewsResource: This is how the app gets news resources from the network. The rest of the app is unaware of this type, only the data layer knows or cares about this. It is fully owned by the data module.
  • core.database.model.NewsResourceEntity: This is how the news resources are stored for offline first access. The rest of the app is unaware of this type, only the data layer knows or cares about this. It is fully owned by the data mod…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tunjid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants