feat: club membre import
This commit is contained in:
@@ -14,6 +14,19 @@ public enum Genre {
|
||||
this.str = name;
|
||||
}
|
||||
|
||||
public static Genre fromString(String genre) {
|
||||
if (genre == null) {
|
||||
return NA;
|
||||
}
|
||||
if (genre.equalsIgnoreCase("Homme") || genre.equalsIgnoreCase("H")) {
|
||||
return H;
|
||||
} else if (genre.equalsIgnoreCase("Femme") || genre.equalsIgnoreCase("F")) {
|
||||
return F;
|
||||
} else {
|
||||
return NA;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return str;
|
||||
|
||||
Reference in New Issue
Block a user