feat: AppsApp add more fields
@@ -18,6 +18,23 @@ const (
AppsLeaderboardTypePoints
)
+// AppsScreenOrientation supported screen orientation.
+type AppsScreenOrientation int
+
+// Possible values.
+const (
+ AppsScreenOrientationBoth AppsScreenOrientation = iota
+ AppsScreenOrientationLandscape
+ AppsScreenOrientationPortrait
+)
+
+// AppsCatalogBanner struct.
+type AppsCatalogBanner struct {
+ BackgroundColor string `json:"background_color"`
+ DescriptionColor string `json:"description_color"`
+ TitleColor string `json:"title_color"`
+}
+
// AppsApp struct.
type AppsApp struct {
AuthorGroup int `json:"author_group"` // Official community's ID
@@ -39,6 +56,9 @@ type AppsApp struct {
IsInCatalog BaseBoolInt `json:"is_in_catalog"` // Information whether application is in mobile catalog
Installed BaseBoolInt `json:"installed"`
PushEnabled BaseBoolInt `json:"push_enabled"`
+ HideTabbar BaseBoolInt `json:"hide_tabbar"`
+ IsNew BaseBoolInt `json:"is_new"`
+ New BaseBoolInt `json:"new"`
LeaderboardType int `json:"leaderboard_type"`
MembersCount int `json:"members_count"` // Members number
PlatformID int `json:"platform_id"` // Application ID in store
@@ -49,6 +69,9 @@ type AppsApp struct {
Title string `json:"title"` // Application title
Type string `json:"type"`
Icon16 string `json:"icon_16"`
+ Icon576 string `json:"icon_576"`
+ ScreenOrientation AppsScreenOrientation `json:"screen_orientation"`
+ CatalogBanner AppsCatalogBanner `json:"catalog_banner"`
}
// AppsLeaderboard struct.
