From f9ff287fdd2a982e35542d319f7f5eb3031c1076 Mon Sep 17 00:00:00 2001 From: CGantert345 <57003061+CGantert345@users.noreply.github.com> Date: Fri, 12 Mar 2021 13:46:22 +0100 Subject: names aligned to asn spec for new travel classes in asn version 2 --- src/org/uic/barcode/ticket/api/asn/omv2/TravelClassType.java | 8 ++++---- src/org/uic/barcode/ticket/api/spec/ITravelClassType.java | 8 ++++---- src/org/uic/barcode/ticket/api/utils/Api2OpenAsnEncoder.java | 3 +++ 3 files changed, 11 insertions(+), 8 deletions(-) (limited to 'src/org/uic/barcode/ticket/api') diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/TravelClassType.java b/src/org/uic/barcode/ticket/api/asn/omv2/TravelClassType.java index 37c4ac7..01aa09f 100644 --- a/src/org/uic/barcode/ticket/api/asn/omv2/TravelClassType.java +++ b/src/org/uic/barcode/ticket/api/asn/omv2/TravelClassType.java @@ -31,10 +31,10 @@ public enum TravelClassType { premium("premium"), business("business"), all("all"), - premiumFirst("A"), - standardFirst("B"), - premiumSecond("C"), - standardSecond("D"); + premiumFirst("premiumFirst"), + standardFirst("standardFirst"), + premiumSecond("premiumSecond"), + standardSecond("standardSecond"); public String text; diff --git a/src/org/uic/barcode/ticket/api/spec/ITravelClassType.java b/src/org/uic/barcode/ticket/api/spec/ITravelClassType.java index c064d42..b927b48 100644 --- a/src/org/uic/barcode/ticket/api/spec/ITravelClassType.java +++ b/src/org/uic/barcode/ticket/api/spec/ITravelClassType.java @@ -31,10 +31,10 @@ public enum ITravelClassType { premium("premium"), business("business"), all("all"), - premiumFirst("A"), - standardFirst("B"), - premiumSecond("C"), - standardSecond("D"); + premiumFirst("premiumFirst"), + standardFirst("standardFirst"), + premiumSecond("premiumSecond"), + standardSecond("standardSecond"); public String text; diff --git a/src/org/uic/barcode/ticket/api/utils/Api2OpenAsnEncoder.java b/src/org/uic/barcode/ticket/api/utils/Api2OpenAsnEncoder.java index bb4cb2d..78deb8a 100644 --- a/src/org/uic/barcode/ticket/api/utils/Api2OpenAsnEncoder.java +++ b/src/org/uic/barcode/ticket/api/utils/Api2OpenAsnEncoder.java @@ -2304,6 +2304,9 @@ public class Api2OpenAsnEncoder { } + + + return TravelClassType.valueOf(apiClass.name()); -- cgit v1.2.3