Skip to content
This repository has been archived by the owner on Sep 15, 2023. It is now read-only.

Commit

Permalink
Merge pull request #48 from admin-ch/feature/info-dialog
Browse files Browse the repository at this point in the history
make Serializable for dialog
  • Loading branch information
benz-ubique authored Dec 8, 2021
2 parents db86e7d + 9c1d657 commit 5ec7369
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@

package ch.admin.bag.covidcertificate.sdk.core.models.state

import java.io.Serializable

sealed class CheckModeRulesState {
data class SUCCESS(val modeValidities: List<ModeValidity>) : CheckModeRulesState()
data class ERROR(val error: StateError) : CheckModeRulesState()
}

data class ModeValidity(val mode: String, val modeValidityState: ModeValidityState)
data class ModeValidity(val mode: String, val modeValidityState: ModeValidityState): Serializable

enum class ModeValidityState {
SUCCESS, IS_LIGHT, INVALID, UNKNOWN_MODE, UNKNOWN
Expand Down

0 comments on commit 5ec7369

Please sign in to comment.