/*
|
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
|
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Enum.java to edit this template
|
*/
|
package com.megatim.fdxcommons.model.remotedataproduction.enums;
|
|
import com.fasterxml.jackson.annotation.JsonValue;
|
|
/**
|
*
|
* @author ASUS
|
*/
|
public enum TypePas {
|
MINUTE("Minutes"),
|
HEUR("Heurs");
|
|
private final String value;
|
|
private TypePas(String value) {
|
this.value = value;
|
}
|
|
@JsonValue
|
public String getValue() {
|
return value;
|
}
|
|
public static TypePas fromValeur(String value) {
|
switch (value) {
|
case "MINUTE":
|
return TypePas.MINUTE;
|
case "HEUR":
|
return TypePas.HEUR;
|
default:
|
return null;
|
}
|
}
|
|
@Override
|
public String toString() {
|
return value;
|
}
|
}
|