-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmsg.go
More file actions
121 lines (102 loc) · 3.61 KB
/
Copy pathmsg.go
File metadata and controls
121 lines (102 loc) · 3.61 KB
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
package main
type WebResponse struct {
}
type WebChunksResponse struct {
}
type HigherResponse struct {
URL string `json:"url"`
Size int `json:"size"`
}
type VideoResponse struct {
Higher HigherResponse `json:"higher"`
}
type HighResponse struct {
URL string `json:"url"`
Size int `json:"size"`
}
type AudioResponse struct {
High HighResponse `json:"high"`
}
type HTML5Response struct {
Video VideoResponse `json:"video"`
Audio AudioResponse `json:"audio"`
}
type IphoneResponse struct {
}
type MobileResponse struct {
Video string `json:"video"`
}
type ShareResponse struct {
Default string `json:"default"`
}
type FileVersionsResponse struct {
Web WebResponse `json:"web"`
WebChunks WebChunksResponse `json:"web_chunks"`
HTML5 HTML5Response `json:"html5"`
Iphone IphoneResponse `json:"iphone"`
Mobile MobileResponse `json:"mobile"`
Share ShareResponse `json:"share"`
}
type AudioVersionsResponse struct {
}
type ImageVersionsResponse struct {
}
type FirstFrameVersionsResponse struct {
}
type DimensionsResponse struct {
}
type ChannelResponse struct {
}
type TagResponse struct {
ID int `json:"id"`
Title string `json:"title"`
Value string `json:"value"`
}
type MediaBlocksResponse struct {
}
type CoubResponse struct {
ID int `json:"Id"`
Type string `json:"type"`
Permalink string `json:"permalink"`
Title string `json:"title"`
VisibilityType string `json:"visibility_type"`
ChannelID int `json:"channel_id"`
CreatedAt string `json:"created_at"`
UpdatedAt string `json:"updated_at"`
IsDone bool `json:"is_done"`
Duration float64 `json:"duration"`
ViewsCount int `json:"views_count"`
Cotd bool `json:"cotd"`
//CotdAt int `json:"cotd_at"`
Recoub bool `json:"recoub"`
Like bool `json:"like"`
RecoubsCount int `json:"recoubs_count"`
LikesCount int `json:"likes_count"`
RecoubTo int `json:"recoub_to"`
Flag bool `json:"flag"`
OriginalSound bool `json:"original_sound"`
HasSound bool `json:"has_sound"`
FileVersions FileVersionsResponse `json:"file_versions"`
AudioVersions AudioVersionsResponse `json:"audio_versions"`
ImageVersions ImageVersionsResponse `json:"image_versions"`
FirstFrameVersions FirstFrameVersionsResponse `json:"first_frame_versions"`
Dimensions DimensionsResponse `json:"dimensions"`
AgeRestricted bool `json:"age_restricted"`
AllowReuse bool `json:"allow_reuse"`
Banned bool `json:"banned"`
//ExternalDownload ExternalDownloadResponse `json:"external_download"`
Channel ChannelResponse `json:"channel"`
PercentDone int `json:"percent_done"`
Tags []TagResponse `json:"tags"`
//RawVideoID int `json:"raw_video_id"`
MediaBlocks MediaBlocksResponse `json:"media_blocks"`
RawVideoThumbnailUrl string `json:"raw_video_thumbnail_url"`
RawVideoTitle string `json:"raw_video_title"`
Meta string
}
type TimelineResponse struct {
Page int `json:"page"`
TotalPages int `json:"total_pages"`
PerPage int `json:"per_page"`
Coubs []CoubResponse `json:"coubs"`
}