-
Notifications
You must be signed in to change notification settings - Fork 0
/
achievements.go
33 lines (29 loc) · 1.31 KB
/
achievements.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
33
package appstore
// https://developer.apple.com/documentation/appstoreconnectapi/gamecenterachievement/attributes
type Achievement struct {
ReferenceName string `json:"referenceName"`
VendorIdentifier string `json:"vendorIdentifier"`
Points int `json:"points"`
Repeatable bool `json:"repeatable"`
ShowBeforeEarned bool `json:"showBeforeEarned"`
}
type AchievementUpdate struct {
ID string `json:"-"`
ReferenceName string `json:"referenceName,omitempty"`
Points int `json:"points,omitempty"`
Repeatable bool `json:"repeatable,omitempty"`
ShowBeforeEarned bool `json:"showBeforeEarned,omitempty"`
}
// https://developer.apple.com/documentation/appstoreconnectapi/gamecenterachievementlocalization/attributes
type AchievementLocalization struct {
Locale Locale `json:"locale"`
Name string `json:"name"`
BeforeEarnedDescription string `json:"beforeEarnedDescription"`
AfterEarnedDescription string `json:"afterEarnedDescription"`
}
type AchievementLocalizationUpdate struct {
ID string `json:"-"`
Name string `json:"name,omitempty"`
BeforeEarnedDescription string `json:"beforeEarnedDescription,omitempty"`
AfterEarnedDescription string `json:"afterEarnedDescription,omitempty"`
}