1package object // import "github.com/SevereCloud/vksdk/v2/object"
2
3// AppsApp type application type.
4const (
5	AppTypeApp          = "app"
6	AppTypeGame         = "game"
7	AppTypeSite         = "site"
8	AppTypeStandalone   = "standalone"
9	AppTypeVkApp        = "vk_app"
10	AppTypeCommunityApp = "community_app"
11	AppTypeHTML5Game    = "html5_game"
12)
13
14// AppsLeaderboardType leaderboardType type.
15const (
16	AppsLeaderboardTypeNotSupported = iota
17	AppsLeaderboardTypeLevels
18	AppsLeaderboardTypePoints
19)
20
21// AppsScreenOrientation supported screen orientation.
22type AppsScreenOrientation int
23
24// Possible values.
25const (
26	AppsScreenOrientationBoth AppsScreenOrientation = iota
27	AppsScreenOrientationLandscape
28	AppsScreenOrientationPortrait
29)
30
31// AppsCatalogBanner struct.
32type AppsCatalogBanner struct {
33	BackgroundColor  string `json:"background_color"`
34	DescriptionColor string `json:"description_color"`
35	Description      string `json:"description"`
36	TitleColor       string `json:"title_color"`
37}
38
39// AppsApp struct.
40type AppsApp struct {
41	AuthorOwnerID   int         `json:"author_owner_id"`
42	AuthorURL       string      `json:"author_url"`
43	Banner1120      string      `json:"banner_1120"`      // URL of the app banner with 1120 px in width
44	Banner560       string      `json:"banner_560"`       // URL of the app banner with 560 px in width
45	CatalogPosition int         `json:"catalog_position"` // Catalog position
46	Description     string      `json:"description"`      // Application description
47	Friends         []int       `json:"friends"`
48	Genre           string      `json:"genre"`         // Genre name
49	GenreID         int         `json:"genre_id"`      // Genre ID
50	Icon139         string      `json:"icon_139"`      // URL of the app icon with 139 px in width
51	Icon150         string      `json:"icon_150"`      // URL of the app icon with 150 px in width
52	Icon278         string      `json:"icon_278"`      // URL of the app icon with 279 px in width
53	Icon75          string      `json:"icon_75"`       // URL of the app icon with 75 px in width
54	ID              int         `json:"id"`            // Application ID
55	International   BaseBoolInt `json:"international"` // Information whether the application is multi language
56	IsInCatalog     BaseBoolInt `json:"is_in_catalog"` // Information whether application is in mobile catalog
57	Installed       BaseBoolInt `json:"installed"`
58	PushEnabled     BaseBoolInt `json:"push_enabled"`
59	HideTabbar      BaseBoolInt `json:"hide_tabbar"`
60	IsNew           BaseBoolInt `json:"is_new"`
61	New             BaseBoolInt `json:"new"`
62	IsInstalled     BaseBoolInt `json:"is_installed"`
63	LeaderboardType int         `json:"leaderboard_type"`
64	MembersCount    int         `json:"members_count"` // Members number
65	PlatformID      int         `json:"platform_id"`   // Application ID in store
66
67	// Date when the application has been published in Unixtime.
68	PublishedDate     int                   `json:"published_date"`
69	ScreenName        string                `json:"screen_name"` // Screen name
70	Screenshots       []PhotosPhoto         `json:"screenshots"`
71	Section           string                `json:"section"` // Application section name
72	Title             string                `json:"title"`   // Application title
73	Type              string                `json:"type"`
74	Icon16            string                `json:"icon_16"`
75	Icon576           string                `json:"icon_576"`
76	ScreenOrientation AppsScreenOrientation `json:"screen_orientation"`
77	CatalogBanner     AppsCatalogBanner     `json:"catalog_banner"`
78
79	// mobile_controls_type = 0 - прозрачный элемент управления поверх области с игрой;
80	// mobile_controls_type = 1 - чёрная полоска над областью с игрой;
81	// mobile_controls_type = 2 - только для vk apps, без контроллов.
82	MobileControlsType int `json:"mobile_controls_type"`
83
84	// mobile_view_support_type = 0 - игра не использует нижнюю часть экрана на iPhoneX, черная полоса есть.
85	// mobile_view_support_type = 1 - игра использует нижнюю часть экрана на iPhoneX, черной полосы нет.
86	MobileViewSupportType int `json:"mobile_view_support_type"`
87}
88
89// AppsLeaderboard struct.
90type AppsLeaderboard struct {
91	Level  int `json:"level"`   // Level
92	Points int `json:"points"`  // Points number
93	Score  int `json:"score"`   // Score number
94	UserID int `json:"user_id"` // User ID
95}
96
97// AppsScope Scope description.
98type AppsScope struct {
99	Name  string `json:"name"`  // Scope name
100	Title string `json:"title"` // Scope title
101}
102