-
Notifications
You must be signed in to change notification settings - Fork 2
/
skins.go
31 lines (29 loc) · 952 Bytes
/
skins.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
// Skin is a game item skin
type Skin struct {
ID int `json:"id"`
Name string `json:"name"`
Type string `json:"type"`
Flags []string `json:"flags"`
Restrictions []string `json:"restrictions"`
Icon string `json:"icon"`
Rarity string `json:"rarity"`
Description string `json:"description"`
Details struct {
Type string `json:"type"`
WeightClass string `json:"weight_class"`
DyeSlots struct {
Default []struct {
ColorID int `json:"color_id"`
Material string `json:"material"`
} `json:"default"`
} `json:"dye_slots"`
Overrides map[string]string `json:"overrides"`
DamageType string `json:"damage_type"`
} `json:"details"`
}
// Skins returns the skins with the given ids
func (s *Session) Skins(ids ...int) (resp []*Skin, err error) {
err = s.get(concatStrings("/v2/skins", genArgs(ids...)), &resp)
return
}