com.geotab.model.entity.device.GoTalkLanguage Maven / Gradle / Ivy
package com.geotab.model.entity.device;
import com.fasterxml.jackson.annotation.JsonEnumDefaultValue;
import com.fasterxml.jackson.annotation.JsonValue;
import com.geotab.model.serialization.HasName;
public enum GoTalkLanguage implements HasName {
/**
* Fallback when enumeration value is unknown.
*/
@JsonEnumDefaultValue
UNKNOWN("Unknown", -1),
ENGLISH("English", 0),
FRENCH("French", 3),
SPANISH("Spanish", 4),
GERMAN("German", 5),
ITALIAN("Italian", 6);
private final String name;
private final int code;
GoTalkLanguage(String name, int code) {
this.name = name;
this.code = code;
}
@JsonValue
public String getName() {
return name;
}
public int getCode() {
return code;
}
}