1 package org.oxerr.stubhub.client.model;
2
3 import com.fasterxml.jackson.annotation.JsonCreator;
4 import com.fasterxml.jackson.annotation.JsonValue;
5
6
7
8
9 public enum ApiPosBroadcastState {
10
11 DELIST("Delist"),
12
13 LIST("List");
14
15 private String value;
16
17 ApiPosBroadcastState(String value) {
18 this.value = value;
19 }
20
21 @JsonValue
22 public String getValue() {
23 return value;
24 }
25
26 @Override
27 public String toString() {
28 return String.valueOf(value);
29 }
30
31 @JsonCreator
32 public static ApiPosBroadcastState fromValue(String value) {
33 for (ApiPosBroadcastState b : ApiPosBroadcastState.values()) {
34 if (b.value.equals(value)) {
35 return b;
36 }
37 }
38 throw new IllegalArgumentException("Unexpected value '" + value + "'");
39 }
40 }