Improve template

This commit is contained in:
Benoit Marty 2020-05-14 01:31:15 +02:00
parent 43b9e2cec9
commit 9fed62e4a7

View file

@ -6,6 +6,7 @@ import com.airbnb.mvrx.MvRxViewModelFactory
import com.airbnb.mvrx.ViewModelContext
import com.squareup.inject.assisted.Assisted
import com.squareup.inject.assisted.AssistedInject
import im.vector.riotx.core.extensions.exhaustive
import im.vector.riotx.core.platform.VectorViewModel
<#if createViewEvents>
@ -38,7 +39,8 @@ class ${viewModelClass} @AssistedInject constructor(@Assisted initialState: ${vi
}
override fun handle(action: ${actionClass}) {
//TODO
}
when (action) {
}.exhaustive
}
}