mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-15 04:18:53 +01:00
Turn output classes into Kotlin data classes
This commit is contained in:
@@ -4,11 +4,14 @@ import org.briarproject.bramble.api.identity.Author
|
||||
import javax.annotation.concurrent.Immutable
|
||||
|
||||
@Immutable
|
||||
@Suppress("unused")
|
||||
class OutputAuthor(author: Author) {
|
||||
|
||||
val id: ByteArray = author.id.bytes
|
||||
val name: String = author.name
|
||||
val publicKey: ByteArray = author.publicKey
|
||||
|
||||
data class OutputAuthor(
|
||||
val id: ByteArray,
|
||||
val name: String,
|
||||
val publicKey: ByteArray
|
||||
) {
|
||||
constructor(author: Author) : this(
|
||||
id = author.id.bytes,
|
||||
name = author.name,
|
||||
publicKey = author.publicKey
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user