1
0
mirror of https://github.com/dnpm-dip/mv64e-mtb-dto-java.git synced 2025-09-13 08:12:51 +00:00

feat: add submission type 'test'

This commit is contained in:
2025-08-19 15:35:27 +02:00
parent 7855fce882
commit 50e0d34abb
2 changed files with 1857 additions and 1140 deletions

View File

@@ -6,7 +6,7 @@ import com.fasterxml.jackson.annotation.JsonValue;
import java.io.IOException; import java.io.IOException;
public enum MvhSubmissionType { public enum MvhSubmissionType {
ADDITION, CORRECTION, FOLLOWUP, INITIAL; ADDITION, CORRECTION, FOLLOWUP, INITIAL, TEST;
@JsonValue @JsonValue
public String toValue() { public String toValue() {
@@ -15,6 +15,7 @@ public enum MvhSubmissionType {
case CORRECTION: return "correction"; case CORRECTION: return "correction";
case FOLLOWUP: return "followup"; case FOLLOWUP: return "followup";
case INITIAL: return "initial"; case INITIAL: return "initial";
case TEST: return "test";
} }
return null; return null;
} }
@@ -25,6 +26,7 @@ public enum MvhSubmissionType {
if (value.equals("correction")) return CORRECTION; if (value.equals("correction")) return CORRECTION;
if (value.equals("followup")) return FOLLOWUP; if (value.equals("followup")) return FOLLOWUP;
if (value.equals("initial")) return INITIAL; if (value.equals("initial")) return INITIAL;
if (value.equals("test")) return TEST;
throw new IOException("Cannot deserialize MvhSubmissionType"); throw new IOException("Cannot deserialize MvhSubmissionType");
} }
} }

File diff suppressed because it is too large Load Diff