From a954d29e6742921895b383d9c28a558623ffbb4a Mon Sep 17 00:00:00 2001
From: Rosanny <rosanny.sihombing@hft-stuttgart.de>
Date: Fri, 11 Dec 2020 21:24:24 +0100
Subject: [PATCH] define user class

---
 classes/user.js | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100644 classes/user.js

diff --git a/classes/user.js b/classes/user.js
new file mode 100644
index 00000000..3549bf00
--- /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
-- 
GitLab