From 45dfbae63f4d57e851e17dd65b61ba98fca52310 Mon Sep 17 00:00:00 2001 From: Albert Vaca Cintora Date: Thu, 11 Apr 2024 22:47:46 +0200 Subject: [PATCH] Do not make unnecessary stuff public in NetworkPacket --- src/org/kde/kdeconnect/NetworkPacket.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/org/kde/kdeconnect/NetworkPacket.kt b/src/org/kde/kdeconnect/NetworkPacket.kt index f52dd3b6..125836c2 100644 --- a/src/org/kde/kdeconnect/NetworkPacket.kt +++ b/src/org/kde/kdeconnect/NetworkPacket.kt @@ -14,10 +14,10 @@ import java.io.InputStream import java.net.Socket import kotlin.concurrent.Volatile -data class NetworkPacket( +class NetworkPacket private constructor( val id: Long, val type: String, - val mBody: JSONObject, + private val mBody: JSONObject, var payload: Payload?, var payloadTransferInfo: JSONObject, ) {