29 lines
523 B
Java
29 lines
523 B
Java
/**
|
|
* Fiche (sérialisable) que l'on envoie au serveur
|
|
*/
|
|
public class SFicheImpl implements SFiche {
|
|
|
|
private String nom;
|
|
private String email;
|
|
|
|
public SFicheImpl(String nom, String email) {
|
|
this.nom = nom;
|
|
this.email = email;
|
|
}
|
|
|
|
@Override
|
|
public String getNom() {
|
|
return this.nom;
|
|
}
|
|
|
|
@Override
|
|
public String getEmail() {
|
|
return this.email;
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return this.nom + " <" + this.email + ">";
|
|
}
|
|
|
|
} |