-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUser.ts
52 lines (39 loc) · 926 Bytes
/
User.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import { faker } from "@faker-js/faker"
export default class User {
private firstName: string
private lastName: string
private email: string
private password: string
private accessToken: string
private userID : string
constructor() {
this.firstName = faker.person.firstName();
this.lastName = faker.person.lastName();
this.email = faker.internet.email();
this.password = 'Test1234';
}
getFirstName(){
return this.firstName;
}
getLastName(){
return this.lastName;
}
getEmail(){
return this.email;
}
getPassword(){
return this.password;
}
getAccessToken(){
return this.accessToken;
}
setAccessToken(accessToken){
this.accessToken=accessToken;
}
getUserID(){
return this.userID;
}
setUserID(userID){
this.userID=userID;
}
}