-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathgroups.go
More file actions
29 lines (26 loc) · 817 Bytes
/
groups.go
File metadata and controls
29 lines (26 loc) · 817 Bytes
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
package pushover
// Group represents a Pushover Delivery Group.
// ref: https://pushover.net/api/groups
type Group struct {
ID string `json:"group"`
Name string `json:"name"`
}
// GroupsListResponse is the response from a group list request.
type GroupsListResponse struct {
Status int `json:"status"`
RequestID string `json:"request"`
Errors Errors `json:"errors"`
Groups []Group `json:"groups"`
}
// GroupDetailsResponse contains the details of a group that was requested.
type GroupDetailsResponse struct {
Status int `json:"status"`
RequestID string `json:"request"`
Name string `json:"name"`
Users []struct {
User string `json:"user"`
Device *string `json:"device"`
Memo string `json:"memo"`
Disabled bool `json:"disabled"`
} `json:"users"`
}