mirror of
https://codeberg.org/PGPainless/sop-java.git
synced 2024-11-22 23:22:05 +01:00
Fix DecryptionResult constructor
This commit is contained in:
parent
049c18c17b
commit
4b9e2c206f
1 changed files with 5 additions and 6 deletions
|
@ -6,11 +6,10 @@ package sop
|
||||||
|
|
||||||
import sop.util.Optional
|
import sop.util.Optional
|
||||||
|
|
||||||
data class DecryptionResult
|
class DecryptionResult(sessionKey: SessionKey?, val verifications: List<Verification>) {
|
||||||
internal constructor(val sessionKey: Optional<SessionKey>, val verifications: List<Verification>) {
|
val sessionKey: Optional<SessionKey>
|
||||||
|
|
||||||
constructor(
|
init {
|
||||||
sessionKey: SessionKey?,
|
this.sessionKey = Optional.ofNullable(sessionKey)
|
||||||
verifications: List<Verification>
|
}
|
||||||
) : this(Optional.ofNullable(sessionKey), verifications)
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue