The question you have to ask is
If I remove Realm from my application, I have to make changes to my if I use these entity classes
If there is no answer, I see no problem with these objects moving to your view. If, however, they are tied to the kingdom in such a way that you need to change your mind, then this will break the unleashed idea of ââMVP.
I personally often do ViewModel anyway. The reason is because I want to minimize the number of separate calls between my presenter and my presentation. Ideally, your view should be as close as possible to the methods:
setLoadingUi(); setContentUi(ViewModel model); setEmptyUi(); setErrorUi();
Although this is not always possible if you have various view calls, such as setConfirmButtonText , that associate your presenter with great knowledge about your presentation. What happens when you change the button to scroll ... your presenter will need to change, as well as your appearance.
Hope this helps!
source share