-
Notifications
You must be signed in to change notification settings - Fork 0
/
payload.go
212 lines (191 loc) · 7.78 KB
/
payload.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
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
package nicolive
import "encoding/xml"
type getplayerstatus struct {
XMLName xml.Name `xml:"getplayerstatus"`
Text string `xml:",chardata"`
Status string `xml:"status,attr"`
Time string `xml:"time,attr"`
Stream stream `xml:"stream"`
User user `xml:"user"`
Ms ms `xml:"ms"`
TidList string `xml:"tid_list"`
Tickets tickets `xml:"tickets"`
Twitter twitter `xml:"twitter"`
Player player `xml:"player"`
Marquee marquee `xml:"marquee"`
Error getplayerstatusError `xml:"error"`
}
type getplayerstatusError struct {
Text string `xml:",chardata"`
Code code `xml:"code"`
}
type code struct {
Text string `xml:",chardata"`
}
type stream struct {
Text string `xml:",chardata"`
ID string `xml:"id"`
Title string `xml:"title"`
Description string `xml:"description"`
ProviderType string `xml:"provider_type"`
DefaultCommunity string `xml:"default_community"`
International string `xml:"international"`
IsOwner string `xml:"is_owner"`
OwnerID string `xml:"owner_id"`
OwnerName string `xml:"owner_name"`
IsReserved string `xml:"is_reserved"`
IsNiconicoEnqueteEnabled string `xml:"is_niconico_enquete_enabled"`
WatchCount string `xml:"watch_count"`
CommentCount string `xml:"comment_count"`
BaseTime string `xml:"base_time"`
OpenTime string `xml:"open_time"`
StartTime string `xml:"start_time"`
EndTime string `xml:"end_time"`
IsRerunStream string `xml:"is_rerun_stream"`
IsArchiveplayserver string `xml:"is_archiveplayserver"`
BourbonURL string `xml:"bourbon_url"`
FullVideo string `xml:"full_video"`
AfterVideo string `xml:"after_video"`
BeforeVideo string `xml:"before_video"`
KickoutVideo string `xml:"kickout_video"`
TwitterTag string `xml:"twitter_tag"`
DanjoCommentMode string `xml:"danjo_comment_mode"`
Aspect string `xml:"aspect"`
InfinityMode string `xml:"infinity_mode"`
Archive string `xml:"archive"`
Press press `xml:"press"`
PluginDelay string `xml:"plugin_delay"`
PluginURL string `xml:"plugin_url"`
PluginUrls string `xml:"plugin_urls"`
AllowNetduetto string `xml:"allow_netduetto"`
NgScoring string `xml:"ng_scoring"`
IsNonarchiveTimeshiftEnabled string `xml:"is_nonarchive_timeshift_enabled"`
IsTimeshiftReserved string `xml:"is_timeshift_reserved"`
HeaderComment string `xml:"header_comment"`
FooterComment string `xml:"footer_comment"`
SplitBottom string `xml:"split_bottom"`
SplitTop string `xml:"split_top"`
BackgroundComment string `xml:"background_comment"`
FontScale string `xml:"font_scale"`
CommentLock string `xml:"comment_lock"`
Telop telop `xml:"telop"`
ContentsList contentsList `xml:"contents_list"`
PictureURL string `xml:"picture_url"`
ThumbURL string `xml:"thumb_url"`
IsPriorityPrefecture string `xml:"is_priority_prefecture"`
}
type press struct {
Text string `xml:",chardata"`
DisplayLines string `xml:"display_lines"`
DisplayTime string `xml:"display_time"`
StyleConf string `xml:"style_conf"`
}
type telop struct {
Text string `xml:",chardata"`
Enable string `xml:"enable"`
}
type contentsList struct {
Text string `xml:",chardata"`
Contents contents `xml:"contents"`
}
type contents struct {
Text string `xml:",chardata"`
ID string `xml:"id,attr"`
DisableAudio string `xml:"disableAudio,attr"`
DisableVideo string `xml:"disableVideo,attr"`
StartTime string `xml:"start_time,attr"`
}
type user struct {
Text string `xml:",chardata"`
UserID string `xml:"user_id"`
Nickname string `xml:"nickname"`
IsPremium string `xml:"is_premium"`
UserAge string `xml:"userAge"`
UserSex string `xml:"userSex"`
UserDomain string `xml:"userDomain"`
UserPrefecture string `xml:"userPrefecture"`
UserLanguage string `xml:"userLanguage"`
RoomLabel string `xml:"room_label"`
RoomSeetno string `xml:"room_seetno"`
IsJoin string `xml:"is_join"`
TwitterInfo twitterInfo `xml:"twitter_info"`
}
type twitterInfo struct {
Text string `xml:",chardata"`
Status string `xml:"status"`
ScreenName string `xml:"screen_name"`
FollowersCount string `xml:"followers_count"`
IsVip string `xml:"is_vip"`
ProfileImageURL string `xml:"profile_image_url"`
AfterAuth string `xml:"after_auth"`
TweetToken string `xml:"tweet_token"`
}
type ms struct {
Text string `xml:",chardata"`
Addr string `xml:"addr"`
Port string `xml:"port"`
Thread string `xml:"thread"`
}
type tickets struct {
Text string `xml:",chardata"`
Stream []ticketStream `xml:"stream"`
}
type ticketStream struct {
Text string `xml:",chardata"`
Name string `xml:"name,attr"`
}
type twitter struct {
Text string `xml:",chardata"`
LiveEnabled string `xml:"live_enabled"`
VipModeCount string `xml:"vip_mode_count"`
LiveApiURL string `xml:"live_api_url"`
}
type player struct {
Text string `xml:",chardata"`
QosAnalytics string `xml:"qos_analytics"`
DialogImage dialogImage `xml:"dialog_image"`
IsNoticeViewerBalloonEnabled string `xml:"is_notice_viewer_balloon_enabled"`
ErrorReport string `xml:"error_report"`
}
type dialogImage struct {
Text string `xml:",chardata"`
Oidashi string `xml:"oidashi"`
}
type marquee struct {
Text string `xml:",chardata"`
Category string `xml:"category"`
GameKey string `xml:"game_key"`
GameTime string `xml:"game_time"`
ForceNicowariOff string `xml:"force_nicowari_off"`
}
type thread struct {
XMLName xml.Name `xml:"thread"`
Text string `xml:",chardata"`
Resultcode string `xml:"resultcode,attr"`
Thread string `xml:"thread,attr"`
LastRes string `xml:"last_res,attr"`
Ticket string `xml:"ticket,attr"`
Revision string `xml:"revision,attr"`
ServerTime string `xml:"server_time,attr"`
}
type Chat struct {
XMLName xml.Name `xml:"chat"`
Text string `xml:",chardata"`
Thread string `xml:"thread,attr"`
Vpos string `xml:"vpos,attr"`
Date string `xml:"date,attr"`
DateUsec string `xml:"date_usec,attr"`
Mail string `xml:"mail,attr"`
UserID string `xml:"user_id,attr"`
Premium string `xml:"premium,attr"`
Anonymity string `xml:"anonymity,attr"`
Locale string `xml:"locale,attr"`
Score string `xml:"score,attr"`
}
type message struct {
XMLName xml.Name `xml:"thread"`
Thread string `xml:"thread,attr"`
ResFrom string `xml:"res_from,attr"`
Version string `xml:"version,attr"`
Scores string `xml:"scores,attr"`
}