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