Commit a954d29e authored by Rosanny Sihombing's avatar Rosanny Sihombing
Browse files

define user class

parent 56eb3ee3
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
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment