feat: classes to ecapsulate the api calls better

This commit is contained in:
Mohamed Maoulainine Maoulainine
2025-04-27 13:29:31 +02:00
parent fcc20d1f42
commit a8e22de4a3
10 changed files with 422 additions and 0 deletions

View File

@ -0,0 +1,48 @@
// sectionCell.ts
class SectionCell {
private _idSectionCell?: number;
private _sectionId?: number;
private _contentSectionCell?: string;
private _modificationDate?: string;
constructor(data: Partial<SectionCell> = {}) {
this._idSectionCell = data.idSectionCell;
this._sectionId = data.sectionId;
this._contentSectionCell = data.contentSectionCell;
this._modificationDate = data.modificationDate;
}
get idSectionCell(): number | undefined {
return this._idSectionCell;
}
set idSectionCell(value: number | undefined) {
this._idSectionCell = value;
}
get sectionId(): number | undefined {
return this._sectionId;
}
set sectionId(value: number | undefined) {
this._sectionId = value;
}
get contentSectionCell(): string | undefined {
return this._contentSectionCell;
}
set contentSectionCell(value: string | undefined) {
this._contentSectionCell = value;
}
get modificationDate(): string | undefined {
return this._modificationDate;
}
set modificationDate(value: string | undefined) {
this._modificationDate = value;
}
}
export default SectionCell;