Skip to content

Commit

Permalink
Merge pull request #48 from danglotb/fix-compiation-errors-front
Browse files Browse the repository at this point in the history
fix: update field birthdate of the user model in the front
  • Loading branch information
danglotb authored Mar 28, 2020
2 parents 406e14f + 4bfa247 commit 2cead80
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
<!--Idee ajouter le statuts etudiant ou demandeur d'emploi (ça permet a luniv et pole emploi d'evoir une statistique-->
<li>Statut : {{ user.status }}</li>

<li> Qualification : {{ user.qualification }}</li>
<li> Qualification : {{ user.qualificationSet }}</li>
<!-- <li> Statut : {{ user.status }}</li> -->
<li> Competences : {{ user.competences }}</li>
<!-- <li> Statut : {{ user.statut }}</li> -->
<li> Competences : {{ user.skillSet }}</li>
<!-- <li> Statut : {{ user.statut }}</li> -->
<li> Abonnements : {{ user.subscriptionSet }}</li>

<!--Idee ajouter les centre d'interet cela permet au recruteur de cybler les profil adequat-->
<!-- <li> Centre d'interet : {{ user.subscriptionSet }}</li> -->
Expand Down
41 changes: 19 additions & 22 deletions skillful_network_client/src/app/shared/models/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export class User {
private _lastName: string;
private _password: string;
private _email: string;
private _birthDate: string;
private _birthDate: Date;
private _qualification: string;
private _competences: string[];
private _mobileNumber: string;
Expand All @@ -24,25 +24,24 @@ export class User {

private _careerGoal: string;
constructor(data: any) {
this.id = data.id;
this.firstName = data.firstName;

this.email = data.email;
this.status = data.status;
this._id = data.id;
this._firstName = data.firstName;
this._email = data.email;
this._status = data.status;
this._qualification = data.qualification;
this.lastName = data.lastName;
this.password = data.password;
this._lastName = data.lastName;
this._password = data.password;
this._birthDate = data.birthDate;
this.email = data.email;
this._email = data.email;
this._mobileNumber = data.mobileNumber;
this.status = data.status;
this.validated = data.validated;
this.photo = data.photo;
this.skillSet = data.skillSet;
this.qualificationSet = data.qualificationSet;
this.subscriptionSet = data.subscriptionSet;
this.photoProfile = data.photoProfile;
this.careerGoal = data.careerGoal;
this._status = data.status;
this._validated = data.validated;
this._photo = data.photo;
this._skillSet = data.skillSet;
this._qualificationSet = data.qualificationSet;
this._subscriptionSet = data.subscriptionSet;
this._photoProfile = data.photoProfile;
this._careerGoal = data.careerGoal;
}
/* GETTERS & SETTERS */
public get id(): number {
Expand All @@ -69,12 +68,12 @@ export class User {
public set password(value: string) {
this._password = value;
}
/* get birthDate(): Date {
get birthDate(): Date {
return this._birthDate;
}
set birthDate(value: Date) {
this._birthDate = value;
}*/
}
public get email(): string {
return this._email;
}
Expand All @@ -87,8 +86,7 @@ export class User {
public set status(value: string) {
this._status = value;
}

public get mobileNumber(): string {
public get mobileNumber(): string {
return this._mobileNumber;
}
public set mobileNumber(value: string) {
Expand All @@ -113,7 +111,6 @@ export class User {
public set skillSet(value: Skill[]) {
this._skillSet = value;
}

public get qualificationSet(): Qualif[] {
return this._qualificationSet;
}
Expand Down
3 changes: 1 addition & 2 deletions skillful_network_client/tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
},
"files": [
"src/main.ts",
"src/polyfills.ts",
"node_modules/zone.js/lib/zone-spec/long-stack-trace.d.ts"
"src/polyfills.ts"
],
"include": [
"src/**/*.d.ts"
Expand Down

0 comments on commit 2cead80

Please sign in to comment.