Fixed that TanGeneratorTanMedium didn't get mapped correctly

This commit is contained in:
dankito 2020-05-01 12:29:06 +02:00
parent 488905daeb
commit d9e5efe051
1 changed files with 4 additions and 0 deletions

View File

@ -236,6 +236,10 @@ open class fints4javaModelMapper {
} }
open fun mapTanMedium(tanMedium: net.dankito.fints.messages.datenelemente.implementierte.tan.TanMedium): TanMedium { open fun mapTanMedium(tanMedium: net.dankito.fints.messages.datenelemente.implementierte.tan.TanMedium): TanMedium {
if (tanMedium is net.dankito.fints.messages.datenelemente.implementierte.tan.TanGeneratorTanMedium) {
return mapTanMedium(tanMedium)
}
return TanMedium( return TanMedium(
getDisplayNameForTanMedium(tanMedium), getDisplayNameForTanMedium(tanMedium),
mapTanMediumStatus(tanMedium) mapTanMediumStatus(tanMedium)