Renaming view state
This commit is contained in:
parent
a1102738d0
commit
862edffcee
|
@ -27,15 +27,15 @@ import im.vector.app.core.platform.VectorViewModel
|
||||||
import org.matrix.android.sdk.api.session.Session
|
import org.matrix.android.sdk.api.session.Session
|
||||||
|
|
||||||
class SessionOverviewViewModel @AssistedInject constructor(
|
class SessionOverviewViewModel @AssistedInject constructor(
|
||||||
@Assisted val initialState: SessionOverviewState,
|
@Assisted val initialState: SessionOverviewViewState,
|
||||||
session: Session,
|
session: Session,
|
||||||
) : VectorViewModel<SessionOverviewState, SessionOverviewAction, EmptyViewEvents>(initialState) {
|
) : VectorViewModel<SessionOverviewViewState, SessionOverviewAction, EmptyViewEvents>(initialState) {
|
||||||
|
|
||||||
companion object : MavericksViewModelFactory<SessionOverviewViewModel, SessionOverviewState> by hiltMavericksViewModelFactory()
|
companion object : MavericksViewModelFactory<SessionOverviewViewModel, SessionOverviewViewState> by hiltMavericksViewModelFactory()
|
||||||
|
|
||||||
@AssistedFactory
|
@AssistedFactory
|
||||||
interface Factory : MavericksAssistedViewModelFactory<SessionOverviewViewModel, SessionOverviewState> {
|
interface Factory : MavericksAssistedViewModelFactory<SessionOverviewViewModel, SessionOverviewViewState> {
|
||||||
override fun create(initialState: SessionOverviewState): SessionOverviewViewModel
|
override fun create(initialState: SessionOverviewViewState): SessionOverviewViewModel
|
||||||
}
|
}
|
||||||
|
|
||||||
init {
|
init {
|
||||||
|
|
|
@ -18,7 +18,7 @@ package im.vector.app.features.settings.devices.v2.overview
|
||||||
|
|
||||||
import com.airbnb.mvrx.MavericksState
|
import com.airbnb.mvrx.MavericksState
|
||||||
|
|
||||||
data class SessionOverviewState(
|
data class SessionOverviewViewState(
|
||||||
val sessionId: String,
|
val sessionId: String,
|
||||||
val isCurrentSession: Boolean = false,
|
val isCurrentSession: Boolean = false,
|
||||||
) : MavericksState {
|
) : MavericksState {
|
Loading…
Reference in New Issue