project.ts 1.04 KB
Newer Older
Rosanny Sihombing's avatar
Rosanny Sihombing committed
1
class Project {
Rosanny Sihombing's avatar
Rosanny Sihombing committed
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
  ownerGitlabId: number
  name: string
  desc: string
  id?: number
  logo?: string
  path?: string

  constructor (ownerGitlabId: number, name: string, desc: string, id?: number, logo?: string, path?: string) {
    this.ownerGitlabId = ownerGitlabId
    this.name = name
    this.desc = desc
    this.id = id
    this.logo = logo
    this.path = path
  }

  // getter
  getOwnerGitlabId () {
    return this.ownerGitlabId
  }

  getId () {
    return this.id
  }

  getName () {
    return this.name
  }

  getDesc () {
    return this.desc
  }

  getLogo () {
    return this.logo
  }

  getPath () {
    return this.path
  }

  // setter
  setOwnerGitlabId (newOwnerGitlabId: number) {
    this.ownerGitlabId = newOwnerGitlabId
  }

  setId (newId: number) {
    this.id = newId
  }

  setName (newName: string) {
    this.name = newName
  }

  setDesc (newDesc: string) {
    this.desc = newDesc
  }

  setLogo (newLogoUrl: string) {
    this.logo = newLogoUrl
  }

  setPath (newPath: string) {
    this.path = newPath
  }
Rosanny Sihombing's avatar
Rosanny Sihombing committed
67
68
}

Rosanny Sihombing's avatar
Rosanny Sihombing committed
69
export = Project