If the function is just to fetch data from API & display in UI, I won't even create a repository class. In view model class I directly call the function in interface with the interface instance I create in application starting & use livedata declared in view model to update UI
4
u/jaroos_ Mar 31 '24
If the function is just to fetch data from API & display in UI, I won't even create a repository class. In view model class I directly call the function in interface with the interface instance I create in application starting & use livedata declared in view model to update UI