converting open class to sealed interface for extra type safety

This commit is contained in:
Adam Brown 2022-03-17 17:01:16 +00:00
parent ba76aac965
commit 192d1c4f2d

View file

@ -46,13 +46,13 @@ sealed interface OnboardingAction : VectorViewModelAction {
data class PostRegisterAction(val registerAction: RegisterAction) : OnboardingAction
// Reset actions
open class ResetAction : OnboardingAction
sealed interface ResetAction : OnboardingAction
object ResetHomeServerType : ResetAction()
object ResetHomeServerUrl : ResetAction()
object ResetSignMode : ResetAction()
object ResetLogin : ResetAction()
object ResetResetPassword : ResetAction()
object ResetHomeServerType : ResetAction
object ResetHomeServerUrl : ResetAction
object ResetSignMode : ResetAction
object ResetLogin : ResetAction
object ResetResetPassword : ResetAction
// Homeserver history
object ClearHomeServerHistory : OnboardingAction