Skip to content

Commit

Permalink
Merge pull request #4 from giannone-nicolas/master
Browse files Browse the repository at this point in the history
Fix new Doc Types
  • Loading branch information
egelke authored Dec 22, 2021
2 parents 7ee3e98 + 0a317ff commit 8063dc5
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
14 changes: 13 additions & 1 deletion eid-module/Model/DocType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,18 @@ public enum DocType
ForeignerEplus,
ForeignerF,
ForeignerFplus,
EuBlueCard
EuBlueCard,
ICard_2011_98_EU,
JCard_2011_98_EU,
MCardBrexit,
NCardBrexit,
KCard_Council_EC_1030_2002,
LCard_Council_EC_1030_2002,
EU_Card,
EU_Card_Plus,
ACard_Council_EC_1030_2002,
BCard_Council_EC_1030_2002,
FCard_Council_EC_1030_2002,
FCardPlus_Council_EC_1030_2002
}
}
24 changes: 24 additions & 0 deletions eid-module/Model/TLV.cs
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,30 @@ public static DocType ToDocType(this byte[] value)
return DocType.ForeignerFplus;
case "19":
return DocType.EuBlueCard;
case "20":
return DocType.ICard_2011_98_EU;
case "21":
return DocType.JCard_2011_98_EU;
case "22":
return DocType.MCardBrexit;
case "23":
return DocType.NCardBrexit;
case "27":
return DocType.KCard_Council_EC_1030_2002;
case "28":
return DocType.LCard_Council_EC_1030_2002;
case "31":
return DocType.EU_Card;
case "32":
return DocType.EU_Card_Plus;
case "33":
return DocType.ACard_Council_EC_1030_2002;
case "34":
return DocType.BCard_Council_EC_1030_2002;
case "35":
return DocType.FCard_Council_EC_1030_2002;
case "36":
return DocType.FCardPlus_Council_EC_1030_2002;
default:
throw new InvalidOperationException("Unknown Document Type: " + value.ToStr());
}
Expand Down

0 comments on commit 8063dc5

Please sign in to comment.