Skip to content

Instantly share code, notes, and snippets.

@RohitSurwase
Created March 4, 2020 23:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RohitSurwase/442392a78f4da52095260e39ad85dcf9 to your computer and use it in GitHub Desktop.
Save RohitSurwase/442392a78f4da52095260e39ad85dcf9 to your computer and use it in GitHub Desktop.
Implementation of AacMviViewModel generic base class.
class MainActVM(application: Application) :
AacMviViewModel<MainViewState, MainViewEffect, MainViewEvent>(application) {
init {
viewState = MainViewState(fetchStatus = FetchStatus.NotFetched, newsList = emptyList())
}
override fun process(viewEvent: MainViewEvent) {
super.process(viewEvent)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment