Fix EventEmitter Issue
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
3194aef519
commit
704f8d9682
@ -1,30 +1,41 @@
|
||||
export default class Profile {
|
||||
private _name: string;
|
||||
private _avatar: string;
|
||||
private _allergy: string[];
|
||||
private _diets: string[];
|
||||
public name: string;
|
||||
public avatar: string;
|
||||
public allergies: string[];
|
||||
public diets: string[];
|
||||
public isActive: string;
|
||||
public isWaiting: string
|
||||
|
||||
constructor( name: string, avatar: string, allergy: string[], diets: string[]) {
|
||||
this._name = name;
|
||||
this._avatar = avatar;
|
||||
this._allergy = allergy;
|
||||
this._diets = diets;
|
||||
constructor( name: string, avatar: string, allergies: string[], diets: string[], isActive: string, isWaiting: string) {
|
||||
this.name = name;
|
||||
this.avatar = avatar;
|
||||
this.diets = diets;
|
||||
this.allergies = allergies;
|
||||
this.isActive = isActive;
|
||||
this.isWaiting = isWaiting
|
||||
}
|
||||
|
||||
get name(): string {
|
||||
return this._name;
|
||||
}
|
||||
// get name(): string {
|
||||
// return this._name;
|
||||
// }
|
||||
|
||||
// get avatar(): string{
|
||||
// return this._avatar;
|
||||
// }
|
||||
|
||||
get avatar(): string{
|
||||
return this._avatar;
|
||||
}
|
||||
// get allergies(): string[]{
|
||||
// return this._allergies;
|
||||
// }
|
||||
|
||||
get allergy(): string[]{
|
||||
return this._allergy;
|
||||
}
|
||||
// get diets(): string[]{
|
||||
// return this._diets;
|
||||
// }
|
||||
|
||||
get diets(): string[]{
|
||||
return this._diets;
|
||||
}
|
||||
// get isActive(): string{
|
||||
// return this._isActive;
|
||||
// }
|
||||
|
||||
// get isWaiting(): string{
|
||||
// return this._isWaiting;
|
||||
// }
|
||||
}
|
@ -1,7 +1,7 @@
|
||||
import Profil from "../../Models/Profil";
|
||||
import Profile from "../../Models/Profile";
|
||||
|
||||
export default interface IProfileService {
|
||||
getProfiles(): Promise<Profil[]>,
|
||||
addProfile(new_profile: Profil): Promise<boolean>,
|
||||
getProfiles(): Promise<Profile[]>,
|
||||
addProfile(new_profile: Profile): Promise<boolean>,
|
||||
delProfile(profile_name_to_del: string): Promise<boolean>
|
||||
}
|
Loading…
Reference in new issue