Skip to content

Latest commit

 

History

History
8 lines (5 loc) · 529 Bytes

DOMAIN_MODELS_ENTITIES.md

File metadata and controls

8 lines (5 loc) · 529 Bytes

Domain models & entities

  • Any data that we want to store in our local DB should implement a marker interface named DomainEntity.

  • Any data coming from an external source, like a REST API should implement a marker interface named DomainModel.

By utilizing the above we can have converters implementing DomainModelToEntityConverter<Input : DomainModel, Output : DomainEntity> that will be injected to our UseCases, that are responsible to handle any conversion of data between the remote source and our local one.