-
Notifications
You must be signed in to change notification settings - Fork 2
/
mounts.go
31 lines (27 loc) · 984 Bytes
/
mounts.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
package gw2api
// MountSkin contains information about a mount skin
type MountSkin struct {
ID int `json:"id"`
Name string `json:"name"`
Icon string `json:"icon"`
Mount string `json:"mount"`
DyeSlots []*DyeSlot `json:"dye_slots"`
}
// MountSkins returns the requested mount skins
func (s *Session) MountSkins(ids ...string) (rsp *[]MountSkin, err error) {
err = s.get(concatStrings("/v2/mounts/skins", genArgsString(ids...)), &rsp)
return
}
// MountType contains information about a mount type
type MountType struct {
ID string `json:"id"`
Name string `json:"name"`
DefaultSkin int `json:"default_skin"`
Skins []int `json:"skins"`
Skills []*Skill `json:"skills"` // Only id, slot
}
// MountTypes returns the requested mount types
func (s *Session) MountTypes(ids ...string) (rsp []*MountType, err error) {
err = s.get(concatStrings("/v2/mounts/types", genArgsString(ids...)), &rsp)
return
}