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

update contructor/getter/setter

parent 19846ed8
...@@ -15,6 +15,9 @@ class User { ...@@ -15,6 +15,9 @@ class User {
} }
// getter // getter
getEmail() {
return this.email
}
getFullName() { getFullName() {
return this.firstName+' '+this.lastName return this.firstName+' '+this.lastName
} }
...@@ -24,6 +27,9 @@ class User { ...@@ -24,6 +27,9 @@ class User {
getGitlabUserId() { getGitlabUserId() {
return this.gitlabUserId return this.gitlabUserId
} }
getVerificationStatus() {
return this.verificationStatus
}
// setter // setter
setEmail(email) { setEmail(email) {
this.email = email this.email = email
......
const Project = require("./project"); const Project = require("./project");
class Website extends Project { class Website extends Project {
constructor(ownerGitlabId, id, name, desc, logo, settingUrl, kontaktUrl) { constructor(ownerGitlabId, id, name, desc, logo, settingUrl, kontaktUrl, isPublished) {
super(ownerGitlabId, id, name, desc, logo) super(ownerGitlabId, id, name, desc, logo)
this.settingUrl = settingUrl this.settingUrl = settingUrl
this.kontaktUrl = kontaktUrl this.kontaktUrl = kontaktUrl
this.isPublished = isPublished
} }
// getter // getter
getSettingUrl() { getSettingUrl() {
...@@ -13,6 +14,9 @@ class Website extends Project { ...@@ -13,6 +14,9 @@ class Website extends Project {
getKontaktUrl() { getKontaktUrl() {
return this.kontaktUrl return this.kontaktUrl
} }
getIsPublished() {
return this.isPublished
}
// setter // setter
setSettingUrl(newSettingUrl) { setSettingUrl(newSettingUrl) {
this.settingUrl = newSettingUrl this.settingUrl = newSettingUrl
......
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