architecture-components-samples
architecture-components-samples copied to clipboard
Overload with annotation
- when we define our pojo we convert it into dto by @AutoValue, also we implements gson, now we have to annoted with room,don't you guys think the simple class look messy when these things come around, do we have a best solution for it?
Please provide me best example if possible?
@prabinshrestha,
You can extract a common interface and keep it at the domain level. The various specific implementations can then be isolated (and more easily mocked).