mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-12-26 09:33:14 +01:00
converting open class to sealed interface for extra type safety
This commit is contained in:
parent
ba76aac965
commit
192d1c4f2d
@ -46,13 +46,13 @@ sealed interface OnboardingAction : VectorViewModelAction {
|
|||||||
data class PostRegisterAction(val registerAction: RegisterAction) : OnboardingAction
|
data class PostRegisterAction(val registerAction: RegisterAction) : OnboardingAction
|
||||||
|
|
||||||
// Reset actions
|
// Reset actions
|
||||||
open class ResetAction : OnboardingAction
|
sealed interface ResetAction : OnboardingAction
|
||||||
|
|
||||||
object ResetHomeServerType : ResetAction()
|
object ResetHomeServerType : ResetAction
|
||||||
object ResetHomeServerUrl : ResetAction()
|
object ResetHomeServerUrl : ResetAction
|
||||||
object ResetSignMode : ResetAction()
|
object ResetSignMode : ResetAction
|
||||||
object ResetLogin : ResetAction()
|
object ResetLogin : ResetAction
|
||||||
object ResetResetPassword : ResetAction()
|
object ResetResetPassword : ResetAction
|
||||||
|
|
||||||
// Homeserver history
|
// Homeserver history
|
||||||
object ClearHomeServerHistory : OnboardingAction
|
object ClearHomeServerHistory : OnboardingAction
|
||||||
|
Loading…
Reference in New Issue
Block a user