You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
605 B
30 lines
605 B
export default class Profil {
|
|
private _name: string;
|
|
private _avatar: string;
|
|
private _allergy: string[];
|
|
private _diets: string[];
|
|
|
|
constructor( name: string, avatar: string, allergy: string[], diets: string[]) {
|
|
this._name = name;
|
|
this._avatar = avatar;
|
|
this._allergy = allergy;
|
|
this._diets = diets;
|
|
}
|
|
|
|
get name(): string {
|
|
return this._name;
|
|
}
|
|
|
|
|
|
get avatar(): string{
|
|
return this._avatar;
|
|
}
|
|
|
|
get allergy(): string[]{
|
|
return this._allergy;
|
|
}
|
|
|
|
get diets(): string[]{
|
|
return this._diets;
|
|
}
|
|
} |