Versions stable (inachevée mais prête à un déploiement en prod)
This commit is contained in:
31
src/main/java/dev/lions/models/ContactStatus.java
Normal file
31
src/main/java/dev/lions/models/ContactStatus.java
Normal file
@@ -0,0 +1,31 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user