-
Notifications
You must be signed in to change notification settings - Fork 0
/
emotes.go
32 lines (28 loc) · 910 Bytes
/
emotes.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
//go:generate easytags $GOFILE
package gw2api
type Emote struct {
// The id of the emote.
ID string `json:"id"`
// List of ids of available commands for the emote.
Commands []string `json:"commands"`
// List of ids of the items resolvable against v2/items.
UnlockItems []int `json:"unlock_items"`
}
// This resource returns a list of the emotes
// Return an array of ids for each type of currency.
func (r *Requestor) EmoteIDs(pointer *[]string) *Requestor {
r.collectionIDs("/emotes", &pointer)
return r
}
// This resource returns a list of the emotes
// Return a list of response objects
func (r *Requestor) Emotes(pointer *[]*Emote, ids ...string) *Requestor {
r.collection("/emotes", &pointer, ids)
return r
}
// This resource returns a list of the emotes
// Return an object
func (r *Requestor) Emote(pointer *Emote, id string) *Requestor {
r.singleton("/emotes", &pointer, id)
return r
}