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 {
|
export default class Profile {
|
||||||
private _name: string;
|
public name: string;
|
||||||
private _avatar: string;
|
public avatar: string;
|
||||||
private _allergy: string[];
|
public allergies: string[];
|
||||||
private _diets: string[];
|
public diets: string[];
|
||||||
|
public isActive: string;
|
||||||
|
public isWaiting: string
|
||||||
|
|
||||||
constructor( name: string, avatar: string, allergy: string[], diets: string[]) {
|
constructor( name: string, avatar: string, allergies: string[], diets: string[], isActive: string, isWaiting: string) {
|
||||||
this._name = name;
|
this.name = name;
|
||||||
this._avatar = avatar;
|
this.avatar = avatar;
|
||||||
this._allergy = allergy;
|
this.diets = diets;
|
||||||
this._diets = diets;
|
this.allergies = allergies;
|
||||||
|
this.isActive = isActive;
|
||||||
|
this.isWaiting = isWaiting
|
||||||
}
|
}
|
||||||
|
|
||||||
get name(): string {
|
// get name(): string {
|
||||||
return this._name;
|
// return this._name;
|
||||||
}
|
// }
|
||||||
|
|
||||||
|
// get avatar(): string{
|
||||||
|
// return this._avatar;
|
||||||
|
// }
|
||||||
|
|
||||||
get avatar(): string{
|
// get allergies(): string[]{
|
||||||
return this._avatar;
|
// return this._allergies;
|
||||||
}
|
// }
|
||||||
|
|
||||||
get allergy(): string[]{
|
// get diets(): string[]{
|
||||||
return this._allergy;
|
// return this._diets;
|
||||||
}
|
// }
|
||||||
|
|
||||||
get diets(): string[]{
|
// get isActive(): string{
|
||||||
return this._diets;
|
// 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 {
|
export default interface IProfileService {
|
||||||
getProfiles(): Promise<Profil[]>,
|
getProfiles(): Promise<Profile[]>,
|
||||||
addProfile(new_profile: Profil): Promise<boolean>,
|
addProfile(new_profile: Profile): Promise<boolean>,
|
||||||
delProfile(profile_name_to_del: string): Promise<boolean>
|
delProfile(profile_name_to_del: string): Promise<boolean>
|
||||||
}
|
}
|
Loading…
Reference in new issue