Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
m4lab_tv1
User Account
Commits
a954d29e
Commit
a954d29e
authored
Dec 11, 2020
by
Rosanny Sihombing
Browse files
define user class
parent
56eb3ee3
Changes
1
Hide whitespace changes
Inline
Side-by-side
classes/user.js
0 → 100644
View file @
a954d29e
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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment