Skip to content

Commit

Permalink
Error and Step are now Serializable
Browse files Browse the repository at this point in the history
  • Loading branch information
Maik Mursall committed Mar 29, 2022
1 parent e82ae5b commit dcc83ba
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
package com.fintecsystems.xs2awizard.components

import kotlinx.serialization.Serializable

/**
* Enum-Like-Class to differentiate the different Wizard-Errors.
*/
sealed class XS2AWizardError(val code: String, val recoverable: Boolean) {
@Serializable
sealed class XS2AWizardError(val code: String, val recoverable: Boolean) : java.io.Serializable {
/**
Login to bank failed (e.g. invalid login credentials)
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
package com.fintecsystems.xs2awizard.components

import kotlinx.serialization.Serializable

/**
* Enum-Like-Class to differentiate the different Wizard-Steps.
*/
sealed class XS2AWizardStep(val stepName: String) {
@Serializable
sealed class XS2AWizardStep(val stepName: String) : java.io.Serializable {
/**
* Step for entering a TAN
*/
Expand Down

0 comments on commit dcc83ba

Please sign in to comment.