first commit with existing project files

This commit is contained in:
Vincent Guillet
2025-07-12 11:22:38 +02:00
commit b65e27e424
7 changed files with 327 additions and 0 deletions

29
models/Address.js Normal file
View File

@@ -0,0 +1,29 @@
export class Address {
constructor(street, suite, city, zipcode, geo) {
this._street = street;
this._suite = suite;
this._city = city;
this._zipcode = zipcode;
this._geo = geo;
}
get street() { return this._street; }
get suite() { return this._suite; }
get city() { return this._city; }
get zipcode() { return this._zipcode; }
get geo() { return this._geo; }
set street(street) { this._street = street; }
set suite(suite) { this._suite = suite; }
set city(city) { this._city = city; }
set zipcode(zipcode) { this._zipcode = zipcode; }
set geo(geo) { this._geo = geo; }
}

19
models/Company.js Normal file
View File

@@ -0,0 +1,19 @@
export class Company {
constructor(name, catchPhrase, bs) {
this._name = name;
this._catchPhrase = catchPhrase;
this._bs = bs;
}
get name() { return this._name; }
get catchPhrase() { return this._catchPhrase; }
get bs() { return this._bs; }
set name(name) { this._name = name; }
set catchPhrase(catchPhrase) { this._catchPhrase = catchPhrase; }
set bs(bs) { this._bs = bs; }
}

14
models/Geo.js Normal file
View File

@@ -0,0 +1,14 @@
export class Geo {
constructor(lat, lng) {
this._lat = lat;
this._lng = lng;
}
get lat() { return this._lat; }
get lng() { return this._lng; }
set lat(lat) { this._lat = lat; }
set lng(lng) { this._lng = lng; }
}

42
models/User.js Normal file
View File

@@ -0,0 +1,42 @@
export class User {
constructor(id, name, username, email, address, phone, website, company) {
this._id = id;
this._name = name;
this._username = username;
this._email = email;
this._address = address;
this._phone = phone;
this._website = website;
this._company = company;
}
get id() {return this._id;}
get name() {return this._name;}
get username() {return this._username;}
get email() {return this._email;}
get address() {return this._address;}
get phone() {return this._phone;}
get website() {return this._website;}
get company() {return this._company;}
set name(name) {this._name = name;}
set username(username) {this._username = username;}
set email(email) {this._email = email;}
set address(address) {this._address = address;}
set phone(phone) {this._phone = phone;}
set website(website) {this._website = website;}
set company(company) {this._company = company;}
}