user.js 703 Bytes
Newer Older
Rosanny Sihombing's avatar
Rosanny Sihombing committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
class User {
    constructor(id, email, salutation, title, firstName, lastName, industry, organisation, speciality, m4lab_idp, gitlabUserId, verificationStatus) {
        this.id = id
        this.email = email
        this.salutation = salutation
        this.title = title
        this.firstName = firstName
        this.lastName = lastName
        this.industry = industry
        this.organisation = organisation
        this.speciality = speciality
        this.m4lab_idp = m4lab_idp
        this.gitlabUserId = gitlabUserId
        this.verificationStatus = verificationStatus
    }

    // getter
    get fullName() {
        return this.firstName+' '+this.lastName
    }
}

module.exports = User