File tree Expand file tree Collapse file tree
presentation/src/main/java/com/threegap/bitnagil/presentation/splash/model Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package com.threegap.bitnagil.presentation.splash.model
22
3+ import com.threegap.bitnagil.domain.auth.model.UserRole
34import com.threegap.bitnagil.presentation.common.mviviewmodel.MviIntent
45
56sealed class SplashIntent : MviIntent {
6- data class SetTokenChecked (val hasToken : Boolean ? ) : SplashIntent()
7+ data class SetUserRole (val userRole : UserRole ? ) : SplashIntent()
78 data object NavigateToIntro : SplashIntent ()
89 data object NavigateToHome : SplashIntent ()
10+ data object NavigateToTermsAgreement : SplashIntent ()
11+ data object NavigateToOnboarding : SplashIntent ()
912}
Original file line number Diff line number Diff line change @@ -5,4 +5,6 @@ import com.threegap.bitnagil.presentation.common.mviviewmodel.MviSideEffect
55sealed interface SplashSideEffect : MviSideEffect {
66 data object NavigateToIntro : SplashSideEffect
77 data object NavigateToHome : SplashSideEffect
8+ data object NavigateToTermsAgreement : SplashSideEffect
9+ data object NavigateToOnboarding : SplashSideEffect
810}
Original file line number Diff line number Diff line change 11package com.threegap.bitnagil.presentation.splash.model
22
3+ import com.threegap.bitnagil.domain.auth.model.UserRole
34import com.threegap.bitnagil.presentation.common.mviviewmodel.MviState
45import kotlinx.parcelize.Parcelize
56
67@Parcelize
78data class SplashState (
8- val isTokenChecked : Boolean = false ,
9+ val userRole : UserRole ? = null ,
10+ val isAutoLoginCompleted : Boolean = false ,
911) : MviState
You can’t perform that action at this time.
0 commit comments