Added UnparsedSegment so that caller gets informed of all received segments even though we didn't parse it

This commit is contained in:
dankl 2019-10-06 16:19:09 +02:00 committed by dankito
parent 662d9d963d
commit 5fc3e4cc63
2 changed files with 5 additions and 1 deletions

View File

@ -66,7 +66,7 @@ open class ResponseParser {
InstituteSegmentId.UserParameters.id -> parseUserParameters(segment, dataElementGroups)
InstituteSegmentId.AccountInfo.id -> parseAccountInfo(segment, dataElementGroups)
else -> null
else -> UnparsedSegment(segment)
}
}

View File

@ -0,0 +1,4 @@
package net.dankito.fints.response.segments
open class UnparsedSegment(segmentString: String) : ReceivedSegment(segmentString)