-
Notifications
You must be signed in to change notification settings - Fork 2
/
wgtv_videos.go
84 lines (80 loc) · 2.92 KB
/
wgtv_videos.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
// Auto generated file!
package wgn
import (
"github.com/IceflowRE/go-wargaming/v3/wargaming/wgnTime"
)
type WgtvVideosOptions struct {
// Content category ID. Maximum limit: 100.
CategoryId []int `json:"category_id,omitempty"`
// Dated from the specified date
DateFrom *wgnTime.UnixTime `json:"date_from,omitempty"`
// Response field. The fields are separated with commas. Embedded fields are separated with dots. To exclude a field, use "-" in front of its name. In case the parameter is not defined, the method returns all fields. Maximum limit: 100.
Fields []string `json:"fields,omitempty"`
// "Important" mark. Min value is 0. Maximum value: 1.
Important *int `json:"important,omitempty"`
// Localization language. Default is "en". Valid values:
//
// "en" - English (by default)
// "ru" - Русский
// "pl" - Polski
// "de" - Deutsch
// "fr" - Français
// "es" - Español
// "zh-cn" - 简体中文
// "zh-tw" - 繁體中文
// "tr" - Türkçe
// "cs" - Čeština
// "th" - ไทย
// "vi" - Tiếng Việt
// "ko" - 한국어
Language *string `json:"language,omitempty"`
// Number of returned entries (fewer can be returned, but not more than 1000). If the limit sent exceeds 1000, a limit of 100 is applied (by default).
Limit *int `json:"limit,omitempty"`
// Result page number. Default is 1. Min value is 1.
PageNo *int `json:"page_no,omitempty"`
// Program ID. Maximum limit: 100.
ProgramId []int `json:"program_id,omitempty"`
// Game project ID. Maximum limit: 100.
ProjectId []int `json:"project_id,omitempty"`
// Text for search by name
Q *string `json:"q,omitempty"`
// Vehicle ID. Maximum limit: 100.
VehicleId []int `json:"vehicle_id,omitempty"`
// Youtube ID. Maximum limit: 100.
VideoId []string `json:"video_id,omitempty"`
}
type WgtvVideos struct {
// List of category IDs
CategoryId []int `json:"category_id,omitempty"`
// Localized description of the video
Description *string `json:"description,omitempty"`
// Video duration in seconds. The field can return null.
Duration *int `json:"duration,omitempty"`
// Name of the video on YouTube
ExtTitle *string `json:"ext_title,omitempty"`
// "Important" mark
Important *bool `json:"important,omitempty"`
// Program ID
ProgramId *int `json:"program_id,omitempty"`
// List of project IDs
ProjectId []int `json:"project_id,omitempty"`
// Publication date and time
PublishedAt *wgnTime.UnixTime `json:"published_at,omitempty"`
// List of images
Thumbnails *struct {
// Height
Height *int `json:"height,omitempty"`
// Image link
Url *string `json:"url,omitempty"`
// Width
Width *int `json:"width,omitempty"`
} `json:"thumbnails,omitempty"`
// Localized name of the video
Title *string `json:"title,omitempty"`
// List of IDs of vehicles covered in the video
Vehicles map[string]string `json:"vehicles,omitempty"`
// Youtube ID
VideoId *string `json:"video_id,omitempty"`
// Youtube link
VideoUrl *string `json:"video_url,omitempty"`
}