mirror of
https://github.com/element-hq/element-android
synced 2024-11-28 13:38:49 +03:00
converting open class to sealed interface for extra type safety
This commit is contained in:
parent
ba76aac965
commit
192d1c4f2d
1 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue