forked from g8rswimmer/go-twitter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
list_manage.go
93 lines (77 loc) · 2.29 KB
/
list_manage.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
package twitter
// ListMetaData is a list meta data
type ListMetaData struct {
Name *string `json:"name,omitempty"`
Description *string `json:"description,omitempty"`
Private *bool `json:"private,omitempty"`
}
// ListCreateResponse is the response to creating a list
type ListCreateResponse struct {
List *ListCreateData `json:"data"`
RateLimit *RateLimit
}
// ListCreateData is the data returned from creating a list
type ListCreateData struct {
ID string `json:"id"`
Name string `json:"name"`
}
// ListUpdateResponse is the response to updating a list
type ListUpdateResponse struct {
List *ListUpdateData `json:"data"`
RateLimit *RateLimit
}
// ListUpdateData is the data returned from updating a list
type ListUpdateData struct {
Updated bool `json:"updated"`
}
// ListDeleteResponse is the response to deleting a list
type ListDeleteResponse struct {
List *ListDeleteData `json:"data"`
RateLimit *RateLimit
}
// ListDeleteData is the data returned from deleting a list
type ListDeleteData struct {
Deleted bool `json:"deleted"`
}
// ListMemberData is the list member data
type ListMemberData struct {
Member bool `json:"is_member"`
}
// ListAddMemberResponse is the list add member response
type ListAddMemberResponse struct {
List *ListMemberData `json:"data"`
RateLimit *RateLimit
}
// ListRemoveMemberResponse is the list remove member response
type ListRemoveMemberResponse struct {
List *ListMemberData `json:"data"`
RateLimit *RateLimit
}
// UserPinListData pinned data
type UserPinListData struct {
Pinned bool `json:"pinned"`
}
// UserPinListResponse pin list response
type UserPinListResponse struct {
List *UserPinListData `json:"data"`
RateLimit *RateLimit
}
// UserUnpinListResponse unpin list response
type UserUnpinListResponse struct {
List *UserPinListData `json:"data"`
RateLimit *RateLimit
}
// UserFollowListData is the list following data
type UserFollowListData struct {
Following bool `json:"following"`
}
// UserFollowListResponse is the user follow response
type UserFollowListResponse struct {
List *UserFollowListData `json:"data"`
RateLimit *RateLimit
}
// UserUnfollowListResponse is the user unfollow response
type UserUnfollowListResponse struct {
List *UserFollowListData `json:"data"`
RateLimit *RateLimit
}