-
Notifications
You must be signed in to change notification settings - Fork 0
/
models.go
55 lines (46 loc) · 1.17 KB
/
models.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
package youtube_api
type SearchListResponse struct {
Kind string `json:"kind"`
NextPageToken string `json:"nextPageToken"`
Items []searchItem
}
type searchItem struct {
Kind string `json:"kind"`
Snippet snippet
ID id
}
type snippet struct {
PublishedAt string `json:"publishedAt"`
ChannelID string `json:"channelId"`
Title string `json:"title"`
ChannelTitle string `json:"channelTitle"`
CategoryID string `json:"categoryId"`
}
type id struct {
VideoID string `json:"videoId"`
}
type VideoListResponse struct {
Kind string `json:"kind"`
Items []VideoItem
}
type VideoItem struct {
Kind string `json:"kind"`
ID string `json:"id"`
Snippet snippet
Statistics statistics
Status status
ContentDetails contentDetails
}
type statistics struct {
ViewCount string `json:"viewCount"`
LikeCount string `json:"likeCount"`
DislikeCount string `json:"dislikeCount"`
FavoriteCount string `json:"favoriteCount"`
CommentCount string `json:"commentCount"`
}
type status struct {
PrivacyStatus string `json:"privacyStatus"`
}
type contentDetails struct {
Duration string `json:"duration"`
}