diff --git a/classes/user.js b/classes/user.js new file mode 100644 index 0000000000000000000000000000000000000000..3549bf007118e1c21ebf22591f8ca0ddaa985cfc --- /dev/null +++ b/classes/user.js @@ -0,0 +1,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 \ No newline at end of file