17,6 → 17,9 |
|
private static Utilisateur thisUtilisateur = null; |
|
// Jeton encodé en base64 passé de manière automatique aux services dans un header |
private static String jeton = ""; |
|
public static Utilisateur InitialiserInstance(JSONObject objetJsonUtilisateur) { |
thisUtilisateur = new Utilisateur(objetJsonUtilisateur); |
|
27,6 → 30,14 |
return thisUtilisateur; |
} |
|
public static String getJeton() { |
return jeton; |
} |
|
public static void setJeton(String jeton) { |
Utilisateur.jeton = jeton; |
} |
|
private Utilisateur(JSONObject objetJsonUtilisateur) { |
|
// login utilisateur ou vide si non identifie |