Replies: 3 comments 1 reply
-
however, an abstract class in the adapter file is little bit strange, plz help me out with this |
Beta Was this translation helpful? Give feedback.
-
#36 To be more specific, Updatable is for our different methods of various view models in our use case, and we should mention our own view model and then override it in BillDemo. |
Beta Was this translation helpful? Give feedback.
-
A view model is a data structure class, and it shouldn't have or implement any interfaces. Your wording is ambiguous. The problem we need to address is: Is there any way to make the interfaces of various Views into an all-in-one class? Also, how can we deal with a lot of repetitive ViewModels? In short, we should have one interface and one view model for a view, and one anther interface and view model for another view if exists. We can observe that only |
Beta Was this translation helpful? Give feedback.
-
I think we should link all these viewmodel so they share the same updatable interface
but should we use the abstract class or an interface?
I would start with abstract class, but plz let me know if you think interface is better or any idea about this
Beta Was this translation helpful? Give feedback.
All reactions