Sped up parsing job TAN configurations a bit
This commit is contained in:
parent
bd77a8b6f4
commit
face00e2a7
|
@ -338,12 +338,18 @@ open class ResponseParser @JvmOverloads constructor(
|
|||
}
|
||||
|
||||
protected open fun parseJobTanConfigurations(dataElementGroups: List<String>): List<JobTanConfiguration> {
|
||||
return dataElementGroups.chunked(2).map {
|
||||
val jobTanConfigurations = mutableListOf<JobTanConfiguration>()
|
||||
|
||||
for (i in dataElementGroups.indices step 2) {
|
||||
jobTanConfigurations.add(
|
||||
JobTanConfiguration(
|
||||
parseString(it[0]),
|
||||
parseBoolean(it[1])
|
||||
parseString(dataElementGroups[i]),
|
||||
parseBoolean(dataElementGroups[i + 1])
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
return jobTanConfigurations
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue