-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.go
28 lines (26 loc) · 789 Bytes
/
action.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
package go_pocket_sdk
const (
ActionAdd = "add"
ActionArchive = "archive"
ActionReAdd = "readd"
ActionFavorite = "favorite"
ActionUnFavorite = "unfavorite"
ActionDelete = "delete"
ActionTagsAdd = "tags_add"
ActionTagsRemove = "tags_remove"
ActionTagsReplace = "tags_replace"
ActionTagsClear = "tags_clear"
ActionTagRename = "tag_rename"
ActionTagDelete = "tag_delete"
)
type Action struct {
Name string `json:"action"`
ItemID string `json:"item_id"`
RefID string `json:"ref_id,omitempty"`
Tags string `json:"tags,omitempty"`
Time int64 `json:"time,omitempty"`
Title string `json:"title,omitempty"`
URL string `json:"url,omitempty"`
OldTag string `json:"old_tag,omitempty"`
NewTag string `json:"new_tag,omitempty"`
}