-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcolor_rule.go
43 lines (30 loc) · 1.15 KB
/
color_rule.go
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
package tdproto
// Set of rules to apply to tasks for coloring.
type ColorRule struct {
// Rule id
Uid string `json:"uid"`
// Rule priority
Priority int `json:"priority"`
// Rule description
Description string `json:"description,omitempty"`
// Color index
ColorIndex uint16 `json:"color_index"`
// Project filter enabled
ProjectEnabled *bool `json:"section_enabled,omitempty"` // TODO: rename to "project_enabled
// Project id if project filter enabled
Project string `json:"section,omitempty"` // TODO: rename to "project"
// Tags filter enabled
TagsEnabled *bool `json:"tags_enabled,omitempty"`
// Tag ids if tags filter enabled
Tags []string `json:"tags,omitempty"`
// Task status
TaskStatus string `json:"task_status,omitempty"`
// Task importance filter enabled
TaskImportanceEnabled *bool `json:"task_importance_enabled,omitempty"`
// Task importance if task importance filter enabled
TaskImportance *int `json:"task_importance,omitempty"`
// Task urgency filter enabled
TaskUrgencyEnabled *bool `json:"task_urgency_enabled,omitempty"`
// Task urgency if task urgency filter enabled
TaskUrgency *int `json:"task_urgency,omitempty"`
}