project.ts 1.14 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
    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) {
Rosanny Sihombing's avatar
Rosanny Sihombing committed
10
11
12
        this.ownerGitlabId = ownerGitlabId
        this.name = name
        this.desc = desc
Rosanny Sihombing's avatar
Rosanny Sihombing committed
13
        this.id = id
Rosanny Sihombing's avatar
Rosanny Sihombing committed
14
        this.logo = logo
Rosanny Sihombing's avatar
Rosanny Sihombing committed
15
        this.path = path
Rosanny Sihombing's avatar
Rosanny Sihombing committed
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
    }

    // getter
    getOwnerGitlabId() {
        return this.ownerGitlabId
    }
    getId() {
        return this.id
    }
    getName() {
        return this.name
    }
    getDesc() {
        return this.desc
    }
    getLogo() {
        return this.logo
    }
Rosanny Sihombing's avatar
Rosanny Sihombing committed
34
35
36
    getPath() {
        return this.path
    }
Rosanny Sihombing's avatar
Rosanny Sihombing committed
37
    // setter
Rosanny Sihombing's avatar
Rosanny Sihombing committed
38
    setOwnerGitlabId(newOwnerGitlabId:number){
Rosanny Sihombing's avatar
Rosanny Sihombing committed
39
40
        this.ownerGitlabId = newOwnerGitlabId
    }
Rosanny Sihombing's avatar
Rosanny Sihombing committed
41
    setId(newId:number) {
Rosanny Sihombing's avatar
Rosanny Sihombing committed
42
43
        this.id = newId
    }
Rosanny Sihombing's avatar
Rosanny Sihombing committed
44
    setName(newName:string) {
Rosanny Sihombing's avatar
Rosanny Sihombing committed
45
46
        this.name = newName
    }
Rosanny Sihombing's avatar
Rosanny Sihombing committed
47
    setDesc(newDesc:string) {
Rosanny Sihombing's avatar
Rosanny Sihombing committed
48
49
        this.desc = newDesc
    }
Rosanny Sihombing's avatar
Rosanny Sihombing committed
50
    setLogo(newLogoUrl:string) {
Rosanny Sihombing's avatar
Rosanny Sihombing committed
51
52
        this.logo = newLogoUrl
    }
Rosanny Sihombing's avatar
Rosanny Sihombing committed
53
    setPath(newPath:string) {
Rosanny Sihombing's avatar
Rosanny Sihombing committed
54
55
        this.path = newPath
    }
Rosanny Sihombing's avatar
Rosanny Sihombing committed
56
57
}

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