feat: classes to ecapsulate the api calls better
This commit is contained in:
18
front/MyINPulse-front/src/ApiClasses/JoinRequestDecision.ts
Normal file
18
front/MyINPulse-front/src/ApiClasses/JoinRequestDecision.ts
Normal 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;
|
Reference in New Issue
Block a user