new Task(properties)
Task model
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
properties |
Object | Properties of the Task
Properties
|
Members
(static) Kind :string
Task kind
Type:
- string
Properties:
Name | Type | Description |
---|---|---|
TEXT |
string | |
CHECKLIST |
string |
(static) Priority :Number
Priority of the task
Type:
- Number
Properties:
Name | Type | Description |
---|---|---|
NONE |
Number | |
LOW |
Number | |
MEDIUM |
Number | |
HIGH |
Number |
(static) Status :Number
Current status of the task
Type:
- Number
Properties:
Name | Type | Description |
---|---|---|
TODO |
Number | |
UNKNOWN |
Number | |
COMPLETED |
Number |
Methods
(private) save()
Saves task in TickTick by sending a request to TickTick's API
Returns:
Request response
(private) update()
Update a task in TickTick by sending a request to TickTick's API using the task ID
Returns:
Request response