Skip to content

Commit 35b7c49

Browse files
authored
Merge pull request #3 from AdonisVienet/localBapt
ajout des models
2 parents 8a1f6f5 + 8b31416 commit 35b7c49

20 files changed

+187
-0
lines changed

src/app/model/appartement.spec.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { Appartement } from './appartement';
2+
3+
describe('Appartement', () => {
4+
it('should create an instance', () => {
5+
expect(new Appartement()).toBeTruthy();
6+
});
7+
});

src/app/model/appartement.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { Offre } from "./offre";
2+
3+
export class Appartement extends Offre {
4+
etageAppartement!: number;
5+
nbrPieceAppartement!: number;
6+
exterieurAppartement!: boolean;
7+
}

src/app/model/avis.spec.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { Avis } from './avis';
2+
3+
describe('Avis', () => {
4+
it('should create an instance', () => {
5+
expect(new Avis()).toBeTruthy();
6+
});
7+
});

src/app/model/avis.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { Utilisateur } from "./utilisateur";
2+
3+
export class Avis {
4+
idAvis!: number;
5+
titre!: string;
6+
descriptionAvis!: string;
7+
utilisateur!: Utilisateur;
8+
}

src/app/model/garage.spec.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { Garage } from './garage';
2+
3+
describe('Garage', () => {
4+
it('should create an instance', () => {
5+
expect(new Garage()).toBeTruthy();
6+
});
7+
});

src/app/model/garage.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { Offre } from "./offre";
2+
3+
export class Garage extends Offre {
4+
verouillageGarage!: string;
5+
}

src/app/model/maison.spec.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { Maison } from './maison';
2+
3+
describe('Maison', () => {
4+
it('should create an instance', () => {
5+
expect(new Maison()).toBeTruthy();
6+
});
7+
});

src/app/model/maison.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { Offre } from "./offre";
2+
3+
export class Maison extends Offre {
4+
nbrPieceMaison!: number;
5+
garageMaison!: number;
6+
jardinMaison!: number;
7+
chemineeMaison!: boolean;
8+
9+
}

src/app/model/offre.spec.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { Offre } from './offre';
2+
3+
describe('Offre', () => {
4+
it('should create an instance', () => {
5+
expect(new Offre()).toBeTruthy();
6+
});
7+
});

src/app/model/offre.ts

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import { Avis } from "./avis";
2+
import { Visite } from "./visite";
3+
4+
export enum enumEtatOffre {
5+
RENOVE = "RENOVE",
6+
NEUF = "NEUF",
7+
BON_ETAT = "BON_ETAT",
8+
PASSABLE = "PASSABLE",
9+
A_RENOVE = "A_RENOVE"
10+
}
11+
12+
export class Offre {
13+
idOffre!: number;
14+
adresseOffre!: string;
15+
ville!: string;
16+
prixOffre!: number;
17+
surfaceOffre!: number;
18+
description!: string;
19+
imageOffre!: File;
20+
disponibiliteOffre!: boolean;
21+
orientationOffre!: string;
22+
etatOffre!: enumEtatOffre;
23+
typeOffre!: string;
24+
visite!: Visite[];
25+
avis!: Avis[];
26+
}

0 commit comments

Comments
 (0)