From ca0191d050b3dac6e65815ad5662ed8e796ef9d9 Mon Sep 17 00:00:00 2001 From: CGantert345 <57003061+CGantert345@users.noreply.github.com> Date: Thu, 29 Oct 2020 12:44:07 +0100 Subject: fix for the Android Java SDK bug in getDeclaredFields nor providing the field order --- src/org/uic/ticket/api/asn/omv1/IssuingData.java | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'src/org/uic/ticket/api/asn/omv1/IssuingData.java') diff --git a/src/org/uic/ticket/api/asn/omv1/IssuingData.java b/src/org/uic/ticket/api/asn/omv1/IssuingData.java index 228accd..4082b84 100644 --- a/src/org/uic/ticket/api/asn/omv1/IssuingData.java +++ b/src/org/uic/ticket/api/asn/omv1/IssuingData.java @@ -27,6 +27,7 @@ import net.gcdc.asn1.datatypes.Asn1BigInteger; import net.gcdc.asn1.datatypes.Asn1Default; import net.gcdc.asn1.datatypes.Asn1Optional; import net.gcdc.asn1.datatypes.CharacterRestriction; +import net.gcdc.asn1.datatypes.FieldOrder; import net.gcdc.asn1.datatypes.FixedSize; import net.gcdc.asn1.datatypes.HasExtensionMarker; import net.gcdc.asn1.datatypes.IntRange; @@ -39,57 +40,76 @@ public class IssuingData extends Object { public IssuingData() { } + @FieldOrder(order = 0) @IntRange(minValue=1,maxValue=32000) @Asn1Optional public Long securityProviderNum; + @FieldOrder(order = 1) @RestrictedString(CharacterRestriction.IA5String) @Asn1Optional public String securityProviderIA5; + @FieldOrder(order = 2) @IntRange(minValue=1,maxValue=32000) @Asn1Optional public Long issuerNum; + @FieldOrder(order = 3) @RestrictedString(CharacterRestriction.IA5String) @Asn1Optional public String issuerIA5; + @FieldOrder(order = 4) @IntRange(minValue=2016,maxValue=2269) public Long issuingYear; + @FieldOrder(order = 5) @IntRange(minValue=1,maxValue=366) public Long issuingDay; + @FieldOrder(order = 6) @IntRange(minValue=0,maxValue=1440) @Asn1Optional public Long issuingTime; + @FieldOrder(order = 7) @RestrictedString(CharacterRestriction.UTF8String) @Asn1Optional public String issuerName; + @FieldOrder(order = 8) public Boolean specimen = false; + @FieldOrder(order = 9) public Boolean securePaperTicket = false; + @FieldOrder(order = 10) public Boolean activated = true; + @FieldOrder(order = 11) @FixedSize(3) @Asn1Default(value="EUR") @RestrictedString(CharacterRestriction.IA5String) @Asn1Optional public String currency; + @FieldOrder(order = 12) @IntRange(minValue=1,maxValue=3) @Asn1Default(value="2") @Asn1Optional public Long currencyFract; + @FieldOrder(order = 13) @RestrictedString(CharacterRestriction.IA5String) @Asn1Optional public String issuerPNR; + @FieldOrder(order = 14) @Asn1Optional public ExtensionData extension; + @FieldOrder(order = 15) @Asn1Optional public Asn1BigInteger issuedOnTrainNum; + @FieldOrder(order = 16) @RestrictedString(CharacterRestriction.IA5String) @Asn1Optional public String issuedOnTrainIA5; + @FieldOrder(order = 17) @Asn1Optional public Asn1BigInteger issuedOnLine; + @FieldOrder(order = 18) @Asn1Optional public GeoCoordinateType pointOfSale; -- cgit v1.2.3