Documentation
¶
Index ¶
- Constants
- Variables
- type CommonNoticeDanmaku
- type DanMuMsg
- type EntryEffect
- type FansMedal
- type FullScreenSpecialEffect
- type GiftStarProcess
- type GuardBuy
- type GuardHonorThousand
- type Handler
- func (handler *Handler) AddOption(Cmd string, RoomId int, Do func(event MsgEvent), funcName ...string)
- func (handler *Handler) CmdHandler()
- func (handler *Handler) DelRoomOption(roomId int)
- func (handler *Handler) Init()
- func (_ *Handler) SetCommonNoticeDanmaku(msg map[string]interface{}) (m MsgEvent)
- func (_ *Handler) SetDanMuMsg(msg map[string]interface{}) (m MsgEvent)
- func (_ *Handler) SetEntryEffect(msg map[string]interface{}) (m MsgEvent)
- func (_ *Handler) SetFullScreenSpecialEffect(msg map[string]interface{}) (m MsgEvent)
- func (_ *Handler) SetGiftStarProcess(msg map[string]interface{}) (m MsgEvent)
- func (_ *Handler) SetGuardBuy(msg map[string]interface{}) (m MsgEvent)
- func (_ *Handler) SetGuardHonorThousand(msg map[string]interface{}) (m MsgEvent)
- func (_ *Handler) SetHotRankChange(msg map[string]interface{}) (m MsgEvent)
- func (_ *Handler) SetHotRankChangedV2(msg map[string]interface{}) (m MsgEvent)
- func (_ *Handler) SetInteractWord(msg map[string]interface{}) (m MsgEvent)
- func (_ *Handler) SetLikeInfoV3Click(msg map[string]interface{}) (m MsgEvent)
- func (_ *Handler) SetLikeInfoV3Update(msg map[string]interface{}) (m MsgEvent)
- func (_ *Handler) SetLive(msg map[string]interface{}) (m MsgEvent)
- func (_ *Handler) SetNoticeMsg(msg map[string]interface{}) (m MsgEvent)
- func (_ *Handler) SetOnlineRankCount(msg map[string]interface{}) (m MsgEvent)
- func (_ *Handler) SetOnlineRankTop3(msg map[string]interface{}) (m MsgEvent)
- func (_ *Handler) SetOnlineRankV2(msg map[string]interface{}) (m MsgEvent)
- func (_ *Handler) SetPreparing(msg map[string]interface{}) (m MsgEvent)
- func (_ *Handler) SetRoomBlockMsg(msg map[string]interface{}) (m MsgEvent)
- func (_ *Handler) SetRoomChange(msg map[string]interface{}) (m MsgEvent)
- func (_ *Handler) SetRoomRealTimeMessageUpdate(msg map[string]interface{}) (m MsgEvent)
- func (_ *Handler) SetRoomSkinMsg(msg map[string]interface{}) (m MsgEvent)
- func (_ *Handler) SetSendGift(msg map[string]interface{}) (m MsgEvent)
- func (_ *Handler) SetStopLiveRoomList(msg map[string]interface{}) (m MsgEvent)
- func (_ *Handler) SetSuperChatMessage(msg map[string]interface{}) (m MsgEvent)
- func (_ *Handler) SetTradingScore(msg map[string]interface{}) (m MsgEvent)
- func (_ *Handler) SetUserToastMsg(msg map[string]interface{}) (m MsgEvent)
- func (_ *Handler) SetWatchedChange(msg map[string]interface{}) (m MsgEvent)
- func (_ *Handler) SetWidgetBanner(msg map[string]interface{}) (m MsgEvent)
- type HotRankChange
- type HotRankChangedV2
- type InteractWord
- type LikeInfoV3Click
- type LikeInfoV3Update
- type Live
- type MsgEvent
- type NoticeMsg
- type OnlineRankCount
- type OnlineRankTop3
- type OnlineRankV2
- type Preparing
- type RoomBlockMsg
- type RoomChange
- type RoomRealTimeMessageUpdate
- type RoomSkinMsg
- type SendGift
- type StopLiveRoomList
- type SuperChatMessage
- type TradingScore
- type UserToastMsg
- type WatchedChange
- type WidgetBanner
Constants ¶
View Source
const ( CmdDanmuMsg = "DANMU_MSG" CmdSuperChatMessage = "SUPER_CHAT_MESSAGE" CmdWatchedChange = "WATCHED_CHANGE" CmdSendGift = "SEND_GIFT" CmdOnlineRankCount = "ONLINE_RANK_COUNT" CmdOnlineRankV2 = "ONLINE_RANK_V2" CmdOnlineRankTop3 = "ONLINE_RANK_TOP3" CmdLikeInfoV3Click = "LIKE_INFO_V3_CLICK" CmdInteractWord = "INTERACT_WORD" CmdStopLiveRoomList = "STOP_LIVE_ROOM_LIST" CmdLikeInfoV3Update = "LIKE_INFO_V3_UPDATE" CmdHotRankChange = "HOT_RANK_CHANGED" CmdNoticeMsg = "NOTICE_MSG" CmdRoomRealTimeMessageUpdate = "ROOM_REAL_TIME_MESSAGE_UPDATE" CmdWidgetBanner = "WIDGET_BANNER" CmdHotRankChangedV2 = "HOT_RANK_CHANGED_V2" CmdGuardHonorThousand = "GUARD_HONOR_THOUSAND" CmdLive = "LIVE" CmdRoomChange = "ROOM_CHANGE" CmdRoomBlockMsg = "ROOM_BLOCK_MSG" CmdFullScreenSpecialEffect = "FULL_SCREEN_SPECIAL_EFFECT" CmdCommonNoticeDanmaku = "COMMON_NOTICE_DANMAKU" CmdTradingScore = "TRADING_SCORE" CmdPreparing = "PREPARING" CmdGuardBuy = "GUARD_BUY" CmdGiftStarProcess = "GIFT_STAR_PROCESS" CmdRoomSkinMsg = "ROOM_SKIN_MSG" CmdEntryEffect = "ENTRY_EFFECT" CmdUserToastMsg = "USER_TOAST_MSG" )
Variables ¶
View Source
var CmdName = map[string]string{
"DANMU_MSG": "DanMuMsg",
"SUPER_CHAT_MESSAGE": "SuperChatMessage",
"SUPER_CHAT_MESSAGE_JPN": "SuperChatMessage",
"WATCHED_CHANGE": "WatchedChange",
"SEND_GIFT": "SendGift",
"ONLINE_RANK_COUNT": "OnlineRankCount",
"ONLINE_RANK_V2": "OnlineRankV2",
"ONLINE_RANK_TOP3": "OnlineRankTop3",
"LIKE_INFO_V3_CLICK": "LikeInfoV3Click",
"INTERACT_WORD": "InteractWord",
"STOP_LIVE_ROOM_LIST": "StopLiveRoomList",
"LIKE_INFO_V3_UPDATE": "LikeInfoV3Update",
"HOT_RANK_CHANGED": "HotRankChanged",
"NOTICE_MSG": "NoticeMsg",
"ROOM_REAL_TIME_MESSAGE_UPDATE": "RoomRealTimeMessageUpdate",
"WIDGET_BANNER": "WidgetBanner",
"HOT_RANK_CHANGED_V2": "HotRankChangedV2",
"GUARD_HONOR_THOUSAND": "GuardHonorThousand",
"LIVE": "Live",
"ROOM_CHANGE": "RoomChange",
"ROOM_BLOCK_MSG": "RoomBlockMsg",
"FULL_SCREEN_SPECIAL_EFFECT": "FullScreenSpecialEffect",
"COMMON_NOTICE_DANMAKU": "CommonNoticeDanmaku",
"TRADING_SCORE": "TradingScore",
"PREPARING": "Preparing",
"GUARD_BUY": "GuardBuy",
"GIFT_STAR_PROCESS": "GiftStarProcess",
"ROOM_SKIN_MSG": "RoomSkinMsg",
"ENTRY_EFFECT": "EntryEffect",
"USER_TOAST_MSG": "UserToastMsg",
}
View Source
var JsonCoder jsonCoder
Functions ¶
This section is empty.
Types ¶
type CommonNoticeDanmaku ¶
type CommonNoticeDanmaku struct {
Cmd string `json:"cmd"`
Data struct {
ContentSegments []struct {
FontColor string `json:"font_color"`
FontColorDark string `json:"font_color_dark"`
HighlightFontColor string `json:"highlight_font_color"`
HighlightFontColorDark string `json:"highlight_font_color_dark"`
Text string `json:"text"`
Type int `json:"type"`
} `json:"content_segments"`
Dmscore int `json:"dmscore"`
Terminals []int `json:"terminals"`
} `json:"data"`
}
type EntryEffect ¶
type EntryEffect struct {
Cmd string `json:"cmd"`
Data struct {
ID int `json:"id"`
UID int `json:"uid"`
TargetID int `json:"target_id"`
MockEffect int `json:"mock_effect"`
Face string `json:"face"`
PrivilegeType int `json:"privilege_type"`
CopyWriting string `json:"copy_writing"`
CopyColor string `json:"copy_color"`
HighlightColor string `json:"highlight_color"`
Priority int `json:"priority"`
BasemapURL string `json:"basemap_url"`
ShowAvatar int `json:"show_avatar"`
EffectiveTime int `json:"effective_time"`
WebBasemapURL string `json:"web_basemap_url"`
WebEffectiveTime int `json:"web_effective_time"`
WebEffectClose int `json:"web_effect_close"`
WebCloseTime int `json:"web_close_time"`
Business int `json:"business"`
CopyWritingV2 string `json:"copy_writing_v2"`
IconList []interface{} `json:"icon_list"`
MaxDelayTime int `json:"max_delay_time"`
TriggerTime int64 `json:"trigger_time"`
Identities int `json:"identities"`
EffectSilentTime int `json:"effect_silent_time"`
EffectiveTimeNew float64 `json:"effective_time_new"`
WebDynamicURLWebp string `json:"web_dynamic_url_webp"`
WebDynamicURLApng string `json:"web_dynamic_url_apng"`
MobileDynamicURLWebp string `json:"mobile_dynamic_url_webp"`
} `json:"data"`
}
type FansMedal ¶
type FansMedal struct {
AnchorRoomId int `json:"anchor_roomid"`
GuardLevel int `json:"guard_level"`
IconID int `json:"icon_id"`
IsLighted int `json:"is_lighted"`
MedalColor int `json:"medal_color"`
MedalColorBorder int `json:"medal_color_border"`
MedalColorEnd int `json:"medal_color_end"`
MedalColorStart int `json:"medal_color_start"`
MedalLevel int `json:"medal_level"`
MedalName string `json:"medal_name"`
Score int `json:"score"`
Special string `json:"special"`
TargetID int `json:"target_id"`
}
type FullScreenSpecialEffect ¶
type GiftStarProcess ¶
type GuardBuy ¶
type GuardBuy struct {
Cmd string `json:"cmd"`
Data struct {
UID int `json:"uid"`
Username string `json:"username"`
GuardLevel int `json:"guard_level"`
Num int `json:"num"`
Price int `json:"price"`
GiftID int `json:"gift_id"`
GiftName string `json:"gift_name"`
StartTime int `json:"start_time"`
EndTime int `json:"end_time"`
} `json:"data"`
}
type GuardHonorThousand ¶
type Handler ¶
type Handler struct {
CmdChan chan map[string]interface{}
DoFunc map[string]map[int][]func(event MsgEvent)
// contains filtered or unexported fields
}
func (*Handler) CmdHandler ¶
func (handler *Handler) CmdHandler()
func (*Handler) DelRoomOption ¶
func (*Handler) SetCommonNoticeDanmaku ¶
SetCommonNoticeDanmaku 未知
func (*Handler) SetDanMuMsg ¶
SetDanMuMsg 设置弹幕消息 该消息为list结构, 部分字段含义未知, 因此目前只有部分内容
func (*Handler) SetEntryEffect ¶
SetEntryEffect 未知
func (*Handler) SetFullScreenSpecialEffect ¶
SetFullScreenSpecialEffect 可能为礼物特效
func (*Handler) SetGiftStarProcess ¶
SetGiftStarProcess 未知
func (*Handler) SetGuardBuy ¶
SetGuardBuy 大航海购买
func (*Handler) SetGuardHonorThousand ¶
SetGuardHonorThousand 未知
func (*Handler) SetHotRankChange ¶
SetHotRankChange 未知
func (*Handler) SetHotRankChangedV2 ¶
SetHotRankChangedV2 未知
func (*Handler) SetInteractWord ¶
SetInteractWord 设置欢迎消息
func (*Handler) SetLikeInfoV3Click ¶
SetLikeInfoV3Click 可能为点赞
func (*Handler) SetLikeInfoV3Update ¶
SetLikeInfoV3Update 未知
func (*Handler) SetNoticeMsg ¶
SetNoticeMsg 可能为系统消息 TODO: 尝试优化
func (*Handler) SetOnlineRankCount ¶
SetOnlineRankCount 暂时未知
func (*Handler) SetOnlineRankTop3 ¶
SetOnlineRankTop3 未知
func (*Handler) SetOnlineRankV2 ¶
SetOnlineRankV2 未知
func (*Handler) SetPreparing ¶
SetPreparing 开始准备
func (*Handler) SetRoomBlockMsg ¶
SetRoomBlockMsg 未知
func (*Handler) SetRoomChange ¶
SetRoomChange 未知
func (*Handler) SetRoomRealTimeMessageUpdate ¶
SetRoomRealTimeMessageUpdate 未知
func (*Handler) SetRoomSkinMsg ¶
SetRoomSkinMsg 未知
func (*Handler) SetSendGift ¶
SetSendGift 赠送礼物
func (*Handler) SetStopLiveRoomList ¶
SetStopLiveRoomList 未知
func (*Handler) SetSuperChatMessage ¶
SetSuperChatMessage 超级留言 TODO: 尝试优化
func (*Handler) SetTradingScore ¶
SetTradingScore 未知
func (*Handler) SetUserToastMsg ¶
SetUserToastMsg 上舰长
func (*Handler) SetWatchedChange ¶
SetWatchedChange 暂时未知
func (*Handler) SetWidgetBanner ¶
SetWidgetBanner 未知
type HotRankChange ¶
type HotRankChange struct {
Cmd string `json:"cmd"`
Data struct {
Rank int `json:"rank"`
Trend int `json:"trend"`
Countdown int `json:"countdown"`
Timestamp int `json:"timestamp"`
WebURL string `json:"web_url"`
LiveURL string `json:"live_url"`
BlinkURL string `json:"blink_url"`
LiveLinkURL string `json:"live_link_url"`
PcLinkURL string `json:"pc_link_url"`
Icon string `json:"icon"`
AreaName string `json:"area_name"`
RankDesc string `json:"rank_desc"`
} `json:"data"`
}
type HotRankChangedV2 ¶
type HotRankChangedV2 struct {
Cmd string `json:"cmd"`
Data struct {
Rank int `json:"rank"`
Trend int `json:"trend"`
Countdown int `json:"countdown"`
Timestamp int `json:"timestamp"`
WebURL string `json:"web_url"`
LiveURL string `json:"live_url"`
BlinkURL string `json:"blink_url"`
LiveLinkURL string `json:"live_link_url"`
PcLinkURL string `json:"pc_link_url"`
Icon string `json:"icon"`
AreaName string `json:"area_name"`
RankDesc string `json:"rank_desc"`
} `json:"data"`
}
type InteractWord ¶
type InteractWord struct {
Cmd string `json:"cmd"`
Data struct {
UID int `json:"uid"`
Name string `json:"uname"`
NameColor string `json:"uname_color"`
Dmscore int `json:"dmscore"`
Identities []int `json:"identities"`
IsSpread int `json:"is_spread"`
MsgType int `json:"msg_type"`
PrivilegeType int `json:"privilege_type"`
RoomId int `json:"roomid"`
Score int64 `json:"score"`
SpreadDesc string `json:"spread_desc"`
SpreadInfo string `json:"spread_info"`
TailIcon int `json:"tail_icon"`
Timestamp int `json:"timestamp"`
TriggerTime int64 `json:"trigger_time"`
FansMedal FansMedal `json:"fans_medal"`
Contribution struct {
Grade int `json:"grade"`
} `json:"contribution"`
} `json:"data"`
}
type LikeInfoV3Click ¶
type LikeInfoV3Click struct {
Cmd string `json:"cmd"`
Data struct {
UID int `json:"uid"`
Name string `json:"uname"`
NameColor string `json:"uname_color"`
ShowArea int `json:"show_area"`
MsgType int `json:"msg_type"`
LikeIcon string `json:"like_icon"`
LikeText string `json:"like_text"`
Identities []int `json:"identities"`
Dmscore int `json:"dmscore"`
FansMedal FansMedal `json:"fans_medal"`
ContributionInfo struct {
Grade int `json:"grade"`
} `json:"contribution_info"`
} `json:"data"`
}
type LikeInfoV3Update ¶
type Live ¶
type Live struct {
Cmd string `json:"cmd"`
LiveKey string `json:"live_key"`
VoiceBackground string `json:"voice_background"`
SubSessionKey string `json:"sub_session_key"`
LivePlatform string `json:"live_platform"`
LiveModel int `json:"live_model"`
LiveTime int `json:"live_time"`
Roomid int `json:"roomid"`
}
type MsgEvent ¶
type MsgEvent struct {
Cmd string
RoomId int
DanMuMsg *DanMuMsg
SuperChatMessage *SuperChatMessage
WatchedChange *WatchedChange
SendGift *SendGift
OnlineRankCount *OnlineRankCount
OnlineRankV2 *OnlineRankV2
OnlineRankTop3 *OnlineRankTop3
LikeInfoV3Click *LikeInfoV3Click
InteractWord *InteractWord
StopLiveRoomList *StopLiveRoomList
LikeInfoV3Update *LikeInfoV3Update
HotRankChange *HotRankChange
NoticeMsg *NoticeMsg
RoomRealTimeMessageUpdate *RoomRealTimeMessageUpdate
WidgetBanner *WidgetBanner
HotRankChangedV2 *HotRankChangedV2
GuardHonorThousand *GuardHonorThousand
Live *Live
RoomChange *RoomChange
RoomBlockMsg *RoomBlockMsg
FullScreenSpecialEffect *FullScreenSpecialEffect
CommonNoticeDanmaku *CommonNoticeDanmaku
TradingScore *TradingScore
Preparing *Preparing
GuardBuy *GuardBuy
GiftStarProcess *GiftStarProcess
RoomSkinMsg *RoomSkinMsg
EntryEffect *EntryEffect
UserToastMsg *UserToastMsg
}
type NoticeMsg ¶
type NoticeMsg struct {
Cmd string `json:"cmd"`
ID int `json:"id"`
Name string `json:"name"`
Full struct {
HeadIcon string `json:"head_icon"`
TailIcon string `json:"tail_icon"`
HeadIconFa string `json:"head_icon_fa"`
TailIconFa string `json:"tail_icon_fa"`
HeadIconFan int `json:"head_icon_fan"`
TailIconFan int `json:"tail_icon_fan"`
Background string `json:"background"`
Color string `json:"color"`
Highlight string `json:"highlight"`
Time int `json:"time"`
} `json:"full"`
Half struct {
HeadIcon string `json:"head_icon"`
TailIcon string `json:"tail_icon"`
Background string `json:"background"`
Color string `json:"color"`
Highlight string `json:"highlight"`
Time int `json:"time"`
} `json:"half"`
Side struct {
HeadIcon string `json:"head_icon"`
Background string `json:"background"`
Color string `json:"color"`
Highlight string `json:"highlight"`
Border string `json:"border"`
Time int `json:"time"`
} `json:"side"`
Roomid int `json:"roomid"`
RealRoomid string `json:"real_roomid"`
MsgCommon string `json:"msg_common"`
MsgSelf string `json:"msg_self"`
LinkURL string `json:"link_url"`
MsgType int `json:"msg_type"`
ShieldUID int `json:"shield_uid"`
BusinessID string `json:"business_id"`
Scatter struct {
Min int `json:"min"`
Max int `json:"max"`
} `json:"scatter"`
MarqueeID string `json:"marquee_id"`
NoticeType int `json:"notice_type"`
}
type OnlineRankCount ¶
type OnlineRankTop3 ¶
type OnlineRankV2 ¶
type OnlineRankV2 struct {
Cmd string `json:"cmd"`
Data struct {
List []struct {
UID int `json:"uid,omitempty"`
Face string `json:"face,omitempty"`
Score string `json:"score"`
Name string `json:"uname"`
Rank int `json:"rank,omitempty"`
GuardLevel int `json:"guard_level,omitempty"`
} `json:"list"`
RankType string `json:"rank_type"`
} `json:"data"`
}
type RoomBlockMsg ¶
type RoomChange ¶
type RoomChange struct {
Cmd string `json:"cmd"`
Data struct {
Title string `json:"title"`
AreaID int `json:"area_id"`
ParentAreaID int `json:"parent_area_id"`
AreaName string `json:"area_name"`
ParentAreaName string `json:"parent_area_name"`
LiveKey string `json:"live_key"`
SubSessionKey string `json:"sub_session_key"`
} `json:"data"`
}
type RoomSkinMsg ¶
type RoomSkinMsg struct {
Cmd string `json:"cmd"`
SkinID int `json:"skin_id"`
Status int `json:"status"`
EndTime int `json:"end_time"`
CurrentTime int `json:"current_time"`
OnlyLocal bool `json:"only_local"`
Scatter struct {
Min int `json:"min"`
Max int `json:"max"`
} `json:"scatter"`
SkinConfig struct {
Android struct {
Num1 struct {
Zip string `json:"zip"`
Md5 string `json:"md5"`
} `json:"1"`
} `json:"android"`
Ios struct {
Num1 struct {
Zip string `json:"zip"`
Md5 string `json:"md5"`
} `json:"1"`
} `json:"ios"`
Ipad struct {
Num1 struct {
Zip string `json:"zip"`
Md5 string `json:"md5"`
} `json:"1"`
} `json:"ipad"`
Web struct {
Num1 struct {
Zip string `json:"zip"`
Md5 string `json:"md5"`
Platform string `json:"platform"`
Version string `json:"version"`
HeadInfoBgPic string `json:"headInfoBgPic"`
GiftControlBgPic string `json:"giftControlBgPic"`
RankListBgPic string `json:"rankListBgPic"`
MainText string `json:"mainText"`
NormalText string `json:"normalText"`
HighlightContent string `json:"highlightContent"`
Border string `json:"border"`
ButtonText string `json:"buttonText"`
} `json:"1"`
} `json:"web"`
} `json:"skin_config"`
}
type SendGift ¶
type SendGift struct {
Cmd string `json:"cmd"`
Data struct {
UID int `json:"uid"`
Name string `json:"uname"`
NameColor string `json:"name_color"`
Action string `json:"action"`
BatchComboID string `json:"batch_combo_id"`
BatchComboSend interface{} `json:"batch_combo_send"`
BeatID string `json:"beatId"`
BizSource string `json:"biz_source"`
BlindGift interface{} `json:"blind_gift"`
BroadcastID int `json:"broadcast_id"`
CoinType string `json:"coin_type"`
ComboResourcesID int `json:"combo_resources_id"`
ComboSend interface{} `json:"combo_send"`
ComboStayTime int `json:"combo_stay_time"`
ComboTotalCoin int `json:"combo_total_coin"`
CritProb int `json:"crit_prob"`
Demarcation int `json:"demarcation"`
DiscountPrice int `json:"discount_price"`
Dmscore int `json:"dmscore"`
Draw int `json:"draw"`
Effect int `json:"effect"`
EffectBlock int `json:"effect_block"`
Face string `json:"face"`
FaceEffectID int `json:"face_effect_id"`
FaceEffectType int `json:"face_effect_type"`
FloatScResourceID int `json:"float_sc_resource_id"`
GiftID int `json:"giftId"`
GiftName string `json:"giftName"`
GiftType int `json:"giftType"`
Gold int `json:"gold"`
GuardLevel int `json:"guard_level"`
IsFirst bool `json:"is_first"`
IsNaming bool `json:"is_naming"`
IsSpecialBatch int `json:"is_special_batch"`
Magnification float64 `json:"magnification"`
Num int `json:"num"`
OriginalGiftName string `json:"original_gift_name"`
Price int `json:"price"`
Rcost int `json:"rcost"`
Remain int `json:"remain"`
Rnd string `json:"rnd"`
SendMaster interface{} `json:"send_master"`
Silver int `json:"silver"`
Super int `json:"super"`
SuperBatchGiftNum int `json:"super_batch_gift_num"`
SuperGiftNum int `json:"super_gift_num"`
SvgaBlock int `json:"svga_block"`
Switch bool `json:"switch"`
TagImage string `json:"tag_image"`
Tid string `json:"tid"`
Timestamp int `json:"timestamp"`
TopList interface{} `json:"top_list"`
TotalCoin int `json:"total_coin"`
FansMedal FansMedal `json:"medal_info"`
} `json:"data"`
}
type StopLiveRoomList ¶
type SuperChatMessage ¶
type SuperChatMessage struct {
RoomID int `json:"RoomId"`
Cmd string `json:"cmd"`
Data struct {
BackgroundBottomColor string `json:"background_bottom_color"`
BackgroundColor string `json:"background_color"`
BackgroundIcon string `json:"background_icon"`
BackgroundImage string `json:"background_image"`
BackgroundPriceColor string `json:"background_price_color"`
EndTime int `json:"end_time"`
Gift struct {
GiftID int `json:"gift_id"`
GiftName string `json:"gift_name"`
Num int `json:"num"`
} `json:"gift"`
ID string `json:"id"`
IsRanked int `json:"is_ranked"`
MedalInfo struct {
AnchorRoomid int `json:"anchor_roomid"`
AnchorUname string `json:"anchor_uname"`
IconID int `json:"icon_id"`
MedalColor string `json:"medal_color"`
MedalLevel int `json:"medal_level"`
MedalName string `json:"medal_name"`
Special string `json:"special"`
TargetID int `json:"target_id"`
} `json:"medal_info"`
Message string `json:"message"`
MessageJpn string `json:"message_jpn"`
Price int `json:"price"`
Rate int `json:"rate"`
StartTime int `json:"start_time"`
Time int `json:"time"`
Token string `json:"token"`
Ts int `json:"ts"`
UID string `json:"uid"`
UserInfo struct {
Face string `json:"face"`
FaceFrame string `json:"face_frame"`
GuardLevel int `json:"guard_level"`
IsMainVip int `json:"is_main_vip"`
IsSvip int `json:"is_svip"`
IsVip int `json:"is_vip"`
LevelColor string `json:"level_color"`
Manager int `json:"manager"`
Title string `json:"title"`
Uname string `json:"uname"`
UserLevel int `json:"user_level"`
} `json:"user_info"`
} `json:"data"`
}
type TradingScore ¶
type UserToastMsg ¶
type UserToastMsg struct {
Cmd string `json:"cmd"`
Data struct {
AnchorShow bool `json:"anchor_show"`
Color string `json:"color"`
Dmscore int `json:"dmscore"`
EffectID int `json:"effect_id"`
EndTime int `json:"end_time"`
FaceEffectID int `json:"face_effect_id"`
GiftID int `json:"gift_id"`
GuardLevel int `json:"guard_level"`
IsShow int `json:"is_show"`
Num int `json:"num"`
OpType int `json:"op_type"`
PayflowID string `json:"payflow_id"`
Price int `json:"price"`
RoleName string `json:"role_name"`
RoomEffectID int `json:"room_effect_id"`
StartTime int `json:"start_time"`
SvgaBlock int `json:"svga_block"`
TargetGuardCount int `json:"target_guard_count"`
ToastMsg string `json:"toast_msg"`
UID int64 `json:"uid"`
Unit string `json:"unit"`
UserShow bool `json:"user_show"`
Username string `json:"username"`
} `json:"data"`
}
type WatchedChange ¶
type WidgetBanner ¶
type WidgetBanner struct {
Cmd string `json:"cmd"`
Data struct {
Timestamp int `json:"timestamp"`
WidgetList struct {
Num293 struct {
ID int `json:"id"`
Title string `json:"title"`
Cover string `json:"cover"`
WebCover string `json:"web_cover"`
TipText string `json:"tip_text"`
TipTextColor string `json:"tip_text_color"`
TipBottomColor string `json:"tip_bottom_color"`
JumpURL string `json:"jump_url"`
URL string `json:"url"`
StayTime int `json:"stay_time"`
Site int `json:"site"`
PlatformIn []string `json:"platform_in"`
Type int `json:"type"`
BandID int `json:"band_id"`
SubKey string `json:"sub_key"`
SubData string `json:"sub_data"`
IsAdd bool `json:"is_add"`
} `json:"293"`
} `json:"widget_list"`
} `json:"data"`
}
Click to show internal directories.
Click to hide internal directories.