diff options
author | Keuin <[email protected]> | 2022-09-07 12:45:46 +0800 |
---|---|---|
committer | Keuin <[email protected]> | 2022-09-07 12:47:25 +0800 |
commit | 00595609af53514ffd39d9aeab0d33e6d84cbdb5 (patch) | |
tree | acb89f406dade1662090facd740a7ccc5d90433c /danmaku/dmmsg/interactword.go | |
parent | c78edaa0ffa28bb360663f172e98540b7978e9b2 (diff) |
More comprehensive danmaku message handling.
Diffstat (limited to 'danmaku/dmmsg/interactword.go')
-rw-r--r-- | danmaku/dmmsg/interactword.go | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/danmaku/dmmsg/interactword.go b/danmaku/dmmsg/interactword.go new file mode 100644 index 0000000..d5dc315 --- /dev/null +++ b/danmaku/dmmsg/interactword.go @@ -0,0 +1,39 @@ +package dmmsg + +type InteractWordMessage struct { + Contribution struct { + Grade int `json:"grade"` + } `json:"contribution"` + DanMuScore int `json:"dmscore"` + FansMedal struct { + AnchorRoomid int `json:"anchor_roomid"` + GuardLevel int `json:"guard_level"` + IconID int `json:"icon_id"` + IsLighted int `json:"is_lighted"` + Color int `json:"medal_color"` + ColorBorder int `json:"medal_color_border"` + ColorEnd int `json:"medal_color_end"` + ColorStart int `json:"medal_color_start"` + Level int `json:"medal_level"` + Name string `json:"medal_name"` + Score int `json:"score"` + Special string `json:"special"` + TargetID int `json:"target_id"` + } `json:"fans_medal"` + 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"` + UID int `json:"uid"` + UserName string `json:"uname"` + UserNameColor string `json:"uname_color"` +} + +type RawInteractWordMessage = BaseRawMessage[interface{}, InteractWordMessage] |