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:
@@ -6,7 +6,7 @@ import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.io.IOException;
|
||||
|
||||
public enum MvhSubmissionType {
|
||||
ADDITION, CORRECTION, FOLLOWUP, INITIAL;
|
||||
ADDITION, CORRECTION, FOLLOWUP, INITIAL, TEST;
|
||||
|
||||
@JsonValue
|
||||
public String toValue() {
|
||||
@@ -15,6 +15,7 @@ public enum MvhSubmissionType {
|
||||
case CORRECTION: return "correction";
|
||||
case FOLLOWUP: return "followup";
|
||||
case INITIAL: return "initial";
|
||||
case TEST: return "test";
|
||||
}
|
||||
return null;
|
||||
}
|
||||
@@ -25,6 +26,7 @@ public enum MvhSubmissionType {
|
||||
if (value.equals("correction")) return CORRECTION;
|
||||
if (value.equals("followup")) return FOLLOWUP;
|
||||
if (value.equals("initial")) return INITIAL;
|
||||
if (value.equals("test")) return TEST;
|
||||
throw new IOException("Cannot deserialize MvhSubmissionType");
|
||||
}
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user