com.geotab.model.enumeration.ZoneDisplayMode Maven / Gradle / Ivy
package com.geotab.model.enumeration;
import com.fasterxml.jackson.annotation.JsonValue;
/**
* The zones which will be displayed to a given user on the map.
*/
public enum ZoneDisplayMode {
/**
* Do not show zones on the map.
*/
NONE("None", 0),
/**
* Always show zones on the map.
*/
ALL("All", 1),
/**
* Use Zone's "displayed" property to determine whether to show the zone on the map.
*/
DEFAULT("Default", 2);
private String name;
private int code;
ZoneDisplayMode(String name, int code) {
this.name = name;
this.code = code;
}
public int getCode() {
return code;
}
@JsonValue
public String getName() {
return name;
}
}