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,18 @@
// joinRequestDecision.ts
class JoinRequestDecision {
private _isAccepted?: boolean;
constructor(data: Partial<JoinRequestDecision> = {}) {
this._isAccepted = data.isAccepted;
}
get isAccepted(): boolean | undefined {
return this._isAccepted;
}
set isAccepted(value: boolean | undefined) {
this._isAccepted = value;
}
}
export default JoinRequestDecision;