-
Notifications
You must be signed in to change notification settings - Fork 0
/
task.js
47 lines (45 loc) · 793 Bytes
/
task.js
1
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
module.exports = class task {
constructor(title, id , des, eta, status, dependency,uuid) {
this._id = id || 0;
this._title =title || "";
this._description =des || "";
this._dependency= dependency || [];
this._eta=eta || 0;
this._type="task";
this._status=status || 0;
this._uuid=uuid ||0;
}
set id(id){
this._id=id;
}
set title(title){
this._title=title;
}
set dependency(d){
this._dependency.push(d);
}
set eta(e){
this._eta = e;
}
set status(s){
this._status =s;
}
get id(){
return this._id;
}
get title(){
return this._title;
}
get dependency(){
return this._dependency;
}
get eta(){
return this._eta;
}
get status(){
return this._status;
}
get uuid(){
return this._uuid;
}
}