From 2162e85496fe564480f75db4e184076422b59560 Mon Sep 17 00:00:00 2001 From: Adam Brown Date: Sat, 1 Oct 2022 10:54:23 +0100 Subject: [PATCH] removing redundant serializable --- .../app/dapk/st/matrix/message/MessageEncrypter.kt | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/matrix/services/message/src/main/kotlin/app/dapk/st/matrix/message/MessageEncrypter.kt b/matrix/services/message/src/main/kotlin/app/dapk/st/matrix/message/MessageEncrypter.kt index d2387e8..a9d06a9 100644 --- a/matrix/services/message/src/main/kotlin/app/dapk/st/matrix/message/MessageEncrypter.kt +++ b/matrix/services/message/src/main/kotlin/app/dapk/st/matrix/message/MessageEncrypter.kt @@ -1,20 +1,17 @@ package app.dapk.st.matrix.message import app.dapk.st.matrix.common.* -import kotlinx.serialization.SerialName -import kotlinx.serialization.Serializable fun interface MessageEncrypter { suspend fun encrypt(message: ClearMessagePayload): EncryptedMessagePayload - @Serializable data class EncryptedMessagePayload( - @SerialName("algorithm") val algorithmName: AlgorithmName, - @SerialName("sender_key") val senderKey: String, - @SerialName("ciphertext") val cipherText: CipherText, - @SerialName("session_id") val sessionId: SessionId, - @SerialName("device_id") val deviceId: DeviceId + val algorithmName: AlgorithmName, + val senderKey: String, + val cipherText: CipherText, + val sessionId: SessionId, + val deviceId: DeviceId ) data class ClearMessagePayload(