34 lines
750 B
Java
34 lines
750 B
Java
package fr.titionfire.ffsaf.utils;
|
|
|
|
import io.quarkus.runtime.annotations.RegisterForReflection;
|
|
|
|
import javax.naming.ldap.HasControls;
|
|
import java.util.HashMap;
|
|
|
|
@RegisterForReflection
|
|
public enum Contact {
|
|
COURRIEL("Courriel"),
|
|
TELEPHONE("Téléphone"),
|
|
SITE("Site web"),
|
|
FACEBOOK("Facebook"),
|
|
INSTAGRAM("Instagram");
|
|
|
|
public String name;
|
|
|
|
Contact(String name) {
|
|
this.name = name;
|
|
}
|
|
|
|
public void setName(String name) {
|
|
this.name = name;
|
|
}
|
|
|
|
public static HashMap<String, String> toSite() {
|
|
HashMap<String, String> map = new HashMap<>();
|
|
for (Contact contact : Contact.values()) {
|
|
map.put(contact.toString(), contact.name);
|
|
}
|
|
return map;
|
|
}
|
|
}
|