-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtdtask.js
27 lines (25 loc) · 828 Bytes
/
tdtask.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
class tdtask {
var task : String;
var createdDate : Date;
var endDate : Date;
var dueDate : Date; // keyvalue [due:YYYY-MM-DD]
var taskID : String; // system generated ID to track each task, keyvalue [id:String]
var PID : String; // to store the parent task ID, keyvalue [pid:String]
var project : Array;
var context : Array;
var priority : String;
var isDone : boolean;
var notes : String; // to store additional notes on a task, keyvalue [notes:String]
constructor(task, createdDate, endDate, dueDate, taskID, PID, project, context, priority, isDone) {
this.task = task;
this.createdDate = createdDate;
this.endDate = endDate;
this.dueDate = dueDate;
this.taskID = taskID;
this.PID = PID;
this.project = project;
this.context = context;
this.priority = priority;
this.isDone = isDone;
}
}