From 4ae4609ffb324aac63418c24fb8b5eab21999fde Mon Sep 17 00:00:00 2001 From: dankito Date: Sat, 19 Sep 2020 01:37:24 +0200 Subject: [PATCH] Not persisting segmentNumber, referenceSegmentNumber and segmentString. We don't need them after restoring and make resulting JSON file much smaller --- .../banking/fints/response/segments/ReceivedSegment.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/response/segments/ReceivedSegment.kt b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/response/segments/ReceivedSegment.kt index 2e812373..2725e5d8 100644 --- a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/response/segments/ReceivedSegment.kt +++ b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/response/segments/ReceivedSegment.kt @@ -1,13 +1,17 @@ package net.dankito.banking.fints.response.segments import net.dankito.banking.fints.messages.Separators +import kotlin.jvm.Transient open class ReceivedSegment( val segmentId: String, + @Transient val segmentNumber: Int, val segmentVersion: Int, + @Transient val referenceSegmentNumber: Int? = null, + @Transient val segmentString: String ) {