summaryrefslogtreecommitdiffhomepage
path: root/android/src
diff options
context:
space:
mode:
Diffstat (limited to 'android/src')
-rw-r--r--android/src/main/kotlin/net/mullvad/mullvadvpn/model/KeygenEvent.kt20
1 files changed, 6 insertions, 14 deletions
diff --git a/android/src/main/kotlin/net/mullvad/mullvadvpn/model/KeygenEvent.kt b/android/src/main/kotlin/net/mullvad/mullvadvpn/model/KeygenEvent.kt
index 8c476ef5ff..126ee1737b 100644
--- a/android/src/main/kotlin/net/mullvad/mullvadvpn/model/KeygenEvent.kt
+++ b/android/src/main/kotlin/net/mullvad/mullvadvpn/model/KeygenEvent.kt
@@ -1,20 +1,12 @@
package net.mullvad.mullvadvpn.model
sealed class KeygenEvent {
- class NewKey(val publicKey: PublicKey) : KeygenEvent() {
- var verified: Boolean? = null
- private set
- var replacementFailure: KeygenFailure? = null
- private set
-
- constructor(
- publicKey: PublicKey,
- verified: Boolean?,
- replacementFailure: KeygenFailure?
- ) : this(publicKey) {
- this.verified = verified
- this.replacementFailure = replacementFailure
- }
+ class NewKey(
+ val publicKey: PublicKey,
+ val verified: Boolean?,
+ val replacementFailure: KeygenFailure?
+ ) : KeygenEvent() {
+ constructor(publicKey: PublicKey) : this (publicKey, null, null)
}
object TooManyKeys : KeygenEvent()