blob: e0038e09254507bc9036297a0da1e44a438f778b (
plain) (
blame)
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
import { Guid } from 'guid-typescript';
import { Language } from '../language';
import { Technology } from '../technology';
import { Friend } from './friend';
import { Role } from './role';
export class User {
private _id : Guid;
private _lastName : string;
private _firstName : string;
private _userName : string;
private _email: string;
private _profilePictureURL : string;
private _languages: Language[];
private _technologies: Technology[];
private _roles: Role[];
private _friends: Friend[];
constructor(id: Guid, userName: string, firstName: string, lastName: string, email: string, profilePictureURL: string, languages: Language[], technologies: Technology[], roles: Role[], friends: Friend[]) {
this.id = id;
this.userName = userName;
this.firstName = firstName;
this.lastName = lastName;
this.email = email;
this._profilePictureURL = profilePictureURL;
this.languages = languages;
this.technologies = technologies;
this.roles = roles;
}
public get id(): Guid {
return this._id;
}
public set id(v: Guid) {
this._id = v;
}
public get userName(): string {
return this._userName;
}
public set userName(v: string) {
this._userName = v;
}
public get firstName(): string {
return this._firstName;
}
public set firstName(v: string) {
this._firstName = v;
}
public get lastName(): string {
return this._lastName;
}
public set lastName(v: string) {
this._lastName = v;
}
public get email(): string {
return this._email;
}
public set email(v: string) {
this._email = v;
}
public get profilePictureURL(): string {
return this._profilePictureURL;
}
public set profilePictureURL(v: string) {
this._profilePictureURL = v;
}
public get languages(): Language[] {
return this._languages;
}
public set languages(v: Language[]) {
this._languages = v;
}
public get technologies(): Technology[] {
return this._technologies;
}
public set technologies(v: Technology[]) {
this._technologies = v;
}
public get roles(): Role[] {
return this._roles;
}
public set roles(v: Role[]) {
this._roles = v;
}
public get friends(): Friend[] {
return this._friends;
}
public set friends(v: Friend[]) {
this._friends = v;
}
}
|