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> {
|
protected open fun parseJobTanConfigurations(dataElementGroups: List<String>): List<JobTanConfiguration> {
|
||||||
return dataElementGroups.chunked(2).map {
|
val jobTanConfigurations = mutableListOf<JobTanConfiguration>()
|
||||||
JobTanConfiguration(
|
|
||||||
parseString(it[0]),
|
for (i in dataElementGroups.indices step 2) {
|
||||||
parseBoolean(it[1])
|
jobTanConfigurations.add(
|
||||||
|
JobTanConfiguration(
|
||||||
|
parseString(dataElementGroups[i]),
|
||||||
|
parseBoolean(dataElementGroups[i + 1])
|
||||||
|
)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return jobTanConfigurations
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue