Files
SAE31_2025/src/fr/iutfbleau/papillon/Rappel.java
T
2025-10-26 03:30:51 +01:00

80 lines
2.4 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package fr.iutfbleau.papillon;
/**
* La classe <code>Rappel</code> représente un rappel utilisateur,
* avec un titre, un contenu, un thème et un rang de priorité.
*
* @version 1.0
* @author Seri-khane YOLOU, Aylane SEHL, Jenson VAL
*/
public class Rappel {
private int id;
private String titre;
private String contenu;
private String theme;
private int rang;
/** Constructeur vide (utilisé notamment pour la lecture SQL). */
public Rappel() {}
/**
* Constructeur dun nouveau rappel sans identifiant.
*
* @param titre le titre du rappel
* @param contenu le contenu ou la description
* @param theme la catégorie ou le thème du rappel
* @param rang la priorité ou lordre daffichage
*/
public Rappel(String titre, String contenu, String theme, int rang) {
this(0, titre, contenu, theme, rang);
}
/**
* Constructeur complet avec identifiant.
*
* @param id lidentifiant du rappel
* @param titre le titre du rappel
* @param contenu le contenu
* @param theme le thème
* @param rang le rang de priorité
*/
public Rappel(int id, String titre, String contenu, String theme, int rang) {
this.id = id;
this.titre = titre;
this.contenu = contenu;
this.theme = theme;
this.rang = rang;
}
/** @return lidentifiant du rappel */
public int getId() { return id; }
/** @param id définit lidentifiant du rappel */
public void setId(int id) { this.id = id; }
/** @return le titre du rappel */
public String getTitre() { return titre; }
/** @param titre définit le titre du rappel */
public void setTitre(String titre) { this.titre = titre; }
/** @return le contenu du rappel */
public String getContenu() { return contenu; }
/** @param contenu définit le contenu du rappel */
public void setContenu(String contenu) { this.contenu = contenu; }
/** @return le thème du rappel */
public String getTheme() { return theme; }
/** @param theme définit le thème du rappel */
public void setTheme(String theme) { this.theme = theme; }
/** @return le rang de priorité du rappel */
public int getRang() { return rang; }
/** @param rang définit le rang de priorité du rappel */
public void setRang(int rang) { this.rang = rang; }
}