31 lines
665 B
Java
31 lines
665 B
Java
package dev.lions.models;
|
|
|
|
/**
|
|
* Énumération représentant les différents statuts possibles
|
|
* pour un formulaire de contact.
|
|
*/
|
|
public enum ContactStatus {
|
|
NEW("Nouveau"),
|
|
IN_PROGRESS("En cours de traitement"),
|
|
RESPONDED("Répondu"),
|
|
CLOSED("Clôturé"),
|
|
SPAM("Spam");
|
|
|
|
private final String label;
|
|
|
|
/**
|
|
* Constructeur privé pour initialiser le libellé du statut.
|
|
* @param label Libellé du statut
|
|
*/
|
|
private ContactStatus(String label) {
|
|
this.label = label;
|
|
}
|
|
|
|
/**
|
|
* Récupère le libellé du statut.
|
|
* @return Libellé du statut
|
|
*/
|
|
public String getLabel() {
|
|
return label;
|
|
}
|
|
} |