summaryrefslogtreecommitdiff
path: root/danmaku/dmmsg/interactword.go
blob: d5dc3151b13acfb83b8a29771abce18d09adf288 (plain)
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
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]