-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtask.go
More file actions
60 lines (56 loc) · 1.8 KB
/
Copy pathtask.go
File metadata and controls
60 lines (56 loc) · 1.8 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
package asana
type Task struct {
Assignee interface{} `json:"assignee"`
AssigneeStatus string `json:"assignee_status"`
Completed bool `json:"completed"`
CompletedAt interface{} `json:"completed_at"`
CreatedAt string `json:"created_at"`
DueAt interface{} `json:"due_at"`
DueOn interface{} `json:"due_on"`
Followers []struct {
ID int `json:"id"`
Name string `json:"name"`
} `json:"followers"`
Hearted bool `json:"hearted"`
Hearts []interface{} `json:"hearts"`
ID int `json:"id"`
Liked bool `json:"liked"`
Likes []interface{} `json:"likes"`
Memberships []struct {
Project struct {
ID int `json:"id"`
Name string `json:"name"`
} `json:"project"`
Section interface{} `json:"section"`
} `json:"memberships"`
ModifiedAt string `json:"modified_at"`
Name string `json:"name"`
Notes string `json:"notes"`
NumHearts int `json:"num_hearts"`
NumLikes int `json:"num_likes"`
Parent interface{} `json:"parent"`
Projects []struct {
ID int `json:"id"`
Name string `json:"name"`
} `json:"projects"`
StartOn interface{} `json:"start_on"`
Tags []interface{} `json:"tags"`
Workspace struct {
ID int `json:"id"`
Name string `json:"name"`
} `json:"workspace"`
}
type TaskRequest struct {
Workspace int64 `json:"workspace"`
Name string `json:"name"`
Notes string `json:"notes"`
Followers []*TaskFollower `json:"followers,omitempty"`
Memberships []*TaskMembership `json:"memberships,omitempty"`
}
type TaskMembership struct {
Project int64 `json:"project"`
Section int64 `json:"section,omitempty"`
}
type TaskFollower struct {
ID int64 `json:"id"`
}