summaryrefslogtreecommitdiff
path: root/types/live_room.go
diff options
context:
space:
mode:
Diffstat (limited to 'types/live_room.go')
-rw-r--r--types/live_room.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/types/live_room.go b/types/live_room.go
index 6d39ecb..77588c5 100644
--- a/types/live_room.go
+++ b/types/live_room.go
@@ -139,3 +139,20 @@ func (s LiveStatus) IsStreaming() bool {
func (s LiveStatus) String() string {
return liveStatusStringMap[s]
}
+
+type DanmakuServerInfoResponse = BaseResponse[danmakuInfo]
+
+type danmakuInfo struct {
+ Group string `json:"group"`
+ BusinessID int `json:"business_id"`
+ RefreshRowFactor float64 `json:"refresh_row_factor"`
+ RefreshRate int `json:"refresh_rate"`
+ MaxDelay int `json:"max_delay"`
+ Token string `json:"token"`
+ HostList []struct {
+ Host string `json:"host"`
+ Port int `json:"port"`
+ WssPort int `json:"wss_port"`
+ WsPort int `json:"ws_port"`
+ } `json:"host_list"`
+}