com.geotab.model.enumeration.FuelEconomyUnit Maven / Gradle / Ivy
/*
*
* 2020 Copyright (C) Geotab Inc. All rights reserved.
*/
package com.geotab.model.enumeration;
import com.fasterxml.jackson.annotation.JsonValue;
/**
* Various Fuel Economy units Geotab supports. Currently supported units: L/100 km, km/L, MPG (US)
* and MPG (Imperial).
*/
public enum FuelEconomyUnit {
/**
* The liters per 100 km unit.
*/
LITERS_PER_100_KM("LitersPer100Km"),
/**
* The km per liter unit.
*/
KM_PER_LITER("KmPerLiter"),
/**
* The miles per gallon (US).
*/
MPGUS("MPGUS"),
/**
* The miles per gallon (Imperial).
*/
MPG_IMPERIAL("MPGImperial");
private String name;
FuelEconomyUnit(String name) {
this.name = name;
}
@JsonValue
public String getName() {
return name;
}
}