--- /dev/null
+package hotel;\r
+\r
+import java.io.Serializable;\r
+\r
+\r
+/**\r
+ * Applications reparties\r
+ * TP - Exercice \r
+ * Chaine d'hotels\r
+ * \r
+ * Classe regroupant les informations d'une reservation\r
+ * \r
+ * @author Toto\r
+ * @version 1.0\r
+ */\r
+public class Infos implements Serializable {\r
+\r
+ private static final long serialVersionUID = -6199402168457446943L;\r
+\r
+ private String nomClient;\r
+ private String nomHotel;\r
+ private String date;\r
+ private int nbchambres;\r
+ \r
+ public Infos() {\r
+ this.nomClient = "";\r
+ this.nomHotel = "";\r
+ this.date = "";\r
+ this.nbchambres = 0;\r
+ }\r
+ \r
+ public Infos(String client, String hotel, String date, int nb) {\r
+ this.nomClient = client;\r
+ this.nomHotel = hotel;\r
+ this.date = date;\r
+ this.nbchambres = nb;\r
+ }\r
+ \r
+ public String getNomClient() {\r
+ return this.nomClient;\r
+ }\r
+ \r
+ public void setNomClient(String nom) {\r
+ this.nomClient = nom;\r
+ }\r
+ \r
+ public String getNomHotel() {\r
+ return this.nomHotel;\r
+ }\r
+ \r
+ public void setNomHotel(String nom) {\r
+ this.nomHotel = nom;\r
+ }\r
+ \r
+ public String getDate() {\r
+ return this.date;\r
+ }\r
+ \r
+ public void setDate(String d) {\r
+ this.date = d;\r
+ }\r
+ \r
+ public int getNbChambres() {\r
+ return this.nbchambres;\r
+ }\r
+ \r
+ public void setNbChambres(int nb) {\r
+ this.nbchambres = nb;\r
+ }\r
+ \r
+ public String toString() {\r
+ String str = "";\r
+ str = str + this.nomClient + " " + this.nomHotel + " " + this.date + " " + this.nbchambres;\r
+ return str;\r
+ }\r
+ \r
+}\r