mirror of
https://github.com/AynaLivePlayer/blivedm-go.git
synced 2026-04-22 19:19:49 +08:00
24 lines
751 B
Go
24 lines
751 B
Go
package client
|
|
|
|
// DanmuInfo
|
|
// api https://api.live.bilibili.com/xlive/web-room/v1/index/getDanmuInfo?id=29332&type=0 response
|
|
type DanmuInfo struct {
|
|
Code int `json:"code"`
|
|
Message string `json:"message"`
|
|
Ttl int `json:"ttl"`
|
|
Data 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"`
|
|
} `json:"data"`
|
|
}
|