-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathapp.go
124 lines (108 loc) · 3.12 KB
/
app.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
package adcom1
import "encoding/json"
// App object is used to define an ad supported non-browser application, in contrast to a typical website, example.
// As a derived class, an App object inherits all DistributionChannel attributes and adds those defined below.
type App struct {
DistributionChannel
// Attribute:
// domain
// Type:
// string
// Definition:
// Domain of the app (e.g., “mygame.foo.com”).
Domain string `json:"domain,omitempty"`
// Attribute:
// cat
// Type:
// string array
// Definition:
// Array of content categories describing the app using IDs from the taxonomy indicated in cattax.
Cat []string `json:"cat,omitempty"`
// Attribute:
// sectcat
// Type:
// string array
// Definition:
// Array of content categories describing the current section of the app using IDs from the taxonomy indicated in cattax.
SectCat []string `json:"sectcat,omitempty"`
// Attribute:
// pagecat
// Type:
// string array
// Definition:
// Array of content categories describing the current page or view of the app using IDs from the taxonomy indicated in cattax.
PageCat []string `json:"pagecat,omitempty"`
// Attribute:
// cattax
// Type:
// integer
// Definition:
// The taxonomy in use for the cat, sectcat and pagecat attributes.
// Refer to List: Category Taxonomies.
CatTax CategoryTaxonomy `json:"cattax,omitempty"`
// Attribute:
// privpolicy
// Type:
// integer
// Definition:
// Indicates if the app has a privacy policy, where 0 = no, 1 = yes.
PrivPolicy int8 `json:"privpolicy,omitempty"`
// Attribute:
// keywords
// Type:
// string; DEPRECATED
// Definition:
// Comma-separated list of keywords about the app.
// Only one of 'keywords' or 'kwarray' may be present.
// NOTE: this field is deprecated, use 'kwarray' instead.
Keywords string `json:"keywords,omitempty"`
// Attribute:
// kwarray
// Type:
// string array
// Definition:
// Array of keywords about the site. Only one of 'keywords' or 'kwarray' may be present.
KwArray []string `json:"kwarray,omitempty"`
// Attribute:
// bundle
// Type:
// string
// Definition:
// Bundle or package name of the app (e.g., “com.foo.mygame”) and should NOT be app store IDs (e.g., not iTunes store IDs).
Bundle string `json:"bundle,omitempty"`
// Attribute:
// storeid
// Type:
// string
// Definition:
// The ID of the app in an app store (e.g., Apple iTunes, Google Play).
StoreID string `json:"storeid,omitempty"`
// Attribute:
// storeurl
// Type:
// string
// Definition:
// App store URL for an installed app; for IQG 2.1 compliance.
StoreURL string `json:"storeurl,omitempty"`
// Attribute:
// ver
// Type:
// string
// Definition:
// Application version.
Ver string `json:"ver,omitempty"`
// Attribute:
// paid
// Type:
// integer; default 0
// Definition:
// Indicator of whether or not this is a paid app, where 0 = free, 1 = paid.
Paid int8 `json:"paid,omitempty"`
// Attribute:
// ext
// Type:
// object
// Definition:
// Optional vendor-specific extensions.
Ext json.RawMessage `json:"ext,omitempty"`
}