part

package
v0.13.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 2, 2024 License: MIT Imports: 0 Imported by: 0

README


目录释义

目录 说明
./ 弹幕服务器传回的Msg类型json的golang struct表述
HOT_RANK_CHANGED.go 热门榜位置改变
HOT_RANK_SETTLEMENT.go 热门榜位置获得
LITTLE_MESSAGE_BOX.go 系统消息
MESSAGEBOX_USER_MEDAL_CHANGE.go 粉丝牌改变

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ACTIVITY_BANNER_CHANGE_V2 added in v0.5.10

type ACTIVITY_BANNER_CHANGE_V2 struct {
	Cmd  string `json:"cmd"`
	Data struct {
		Timestamp int `json:"timestamp"`
		List      []struct {
			ID            int    `json:"id"`
			Position      string `json:"position"`
			Type          int    `json:"type"`
			ActivityTitle string `json:"activity_title"`
			Cover         string `json:"cover"`
			JumpURL       string `json:"jump_url"`
			IsClose       int    `json:"is_close"`
			Action        string `json:"action"`
			PlatformInfo  []struct {
				Platform  string `json:"platform"`
				Condition int    `json:"condition"`
				Build     int    `json:"build"`
			} `json:"platform_info"`
			ExtData string `json:"ext_data"`
		} `json:"list"`
	} `json:"data"`
}

type AREA_RANK_CHANGED added in v0.5.11

type AREA_RANK_CHANGED struct {
	Cmd  string `json:"cmd"`
	Data struct {
		ConfID      int    `json:"conf_id"`
		RankName    string `json:"rank_name"`
		UID         int    `json:"uid"`
		Rank        int    `json:"rank"`
		IconURLBlue string `json:"icon_url_blue"`
		IconURLPink string `json:"icon_url_pink"`
		IconURLGrey string `json:"icon_url_grey"`
		ActionType  int    `json:"action_type"`
		Timestamp   int    `json:"timestamp"`
		MsgID       string `json:"msg_id"`
		JumpURLLink string `json:"jump_url_link"`
		JumpURLPc   string `json:"jump_url_pc"`
		JumpURLPink string `json:"jump_url_pink"`
		JumpURLWeb  string `json:"jump_url_web"`
	} `json:"data"`
}

type COMMON_NOTICE_DANMAKU added in v0.5.10

type COMMON_NOTICE_DANMAKU struct {
	Cmd  string `json:"cmd"`
	Data struct {
		ContentSegments []struct {
			FontColor string `json:"font_color"`
			Text      string `json:"text"`
			Type      int    `json:"type"`
		} `json:"content_segments"`
		Dmscore   int   `json:"dmscore"`
		Terminals []int `json:"terminals"`
	} `json:"data"`
}

type CUT_OFF added in v0.6.2

type CUT_OFF struct {
	Cmd    string `json:"cmd"`
	Msg    string `json:"msg"`
	Roomid int    `json:"roomid"`
}

type ENTRY_EFFECT_MUST_RECEIVE

type ENTRY_EFFECT_MUST_RECEIVE struct {
	Cmd  string `json:"cmd"`
	Data struct {
		Id                 int    `json:"id"`
		Uid                int    `json:"uid"`
		Target_id          int    `json:"target_id"`
		Mock_effect        int    `json:"mock_effect"`
		Face               string `json:"face"`
		Privilege_type     int    `json:"privilege_type"`
		Copy_writing       string `json:"copy_writing"`
		Copy_color         string `json:"copy_color"`
		Highlight_color    string `json:"highlight_color"`
		Priority           int    `json:"priority"`
		Basemap_url        string `json:"basemap_url"`
		Show_avatar        int    `json:"show_avatar"`
		Effective_time     int    `json:"effective_time"`
		Web_basemap_url    string `json:"web_basemap_url"`
		Web_effective_time int    `json:"web_effective_time"`
		Web_effect_close   int    `json:"web_effect_close"`
		Web_close_time     int    `json:"web_close_time"`
		Business           int    `json:"business"`
		Copy_writing_v2    string `json:"copy_writing_v2"`
		Icon_list          []int  `json:"icon_list"`
		Max_delay_time     int    `json:"max_delay_time"`
	} `json:"data"`
}

type GIFT_STAR_PROCESS added in v0.5.11

type GIFT_STAR_PROCESS struct {
	Cmd  string `json:"cmd"`
	Data struct {
		Status int    `json:"status"`
		Tip    string `json:"tip"`
	} `json:"data"`
}

type HOT_RANK_CHANGED

type HOT_RANK_CHANGED struct {
	Cmd  string `json:"cmd"`
	Data struct {
		Rank          int    `json:"rank"`
		Trend         int    `json:"trend"`
		Countdown     int    `json:"countdown"`
		Timestamp     int    `json:"timestamp"`
		Web_url       string `json:"web_url"`
		Live_url      string `json:"live_url"`
		Blink_url     string `json:"blink_url"`
		Live_link_url string `json:"live_link_url"`
		Pc_link_url   string `json:"pc_link_url"`
		Icon          string `json:"icon"`
		Area_name     string `json:"area_name"`
	} `json:"data"`
}

type HOT_RANK_CHANGED_V2 added in v0.5.10

type HOT_RANK_CHANGED_V2 struct {
	Cmd  string                   `json:"cmd"`
	Data HOT_RANK_CHANGED_V2_Data `json:"data"`
}

type HOT_RANK_CHANGED_V2_Data added in v0.5.10

type HOT_RANK_CHANGED_V2_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"`
}

type HOT_RANK_SETTLEMENT

type HOT_RANK_SETTLEMENT struct {
	Cmd  string `json:"cmd"`
	Data struct {
		Rank      int    `json:"rank"`
		Uname     string `json:"uname"`
		Face      string `json:"face"`
		Timestamp int    `json:"timestamp"`
		Icon      string `json:"icon"`
		Area_name string `json:"area_name"`
		Url       string `json:"url"`
		Cache_key string `json:"cache_key"`
		Dm_msg    string `json:"dm_msg"`
	} `json:"data"`
}

type HOT_RANK_SETTLEMENT_V2 added in v0.5.10

type HOT_RANK_SETTLEMENT_V2 struct {
	Cmd  string                      `json:"cmd"`
	Data HOT_RANK_SETTLEMENT_V2_Data `json:"data"`
}

type HOT_RANK_SETTLEMENT_V2_Data added in v0.5.10

type HOT_RANK_SETTLEMENT_V2_Data struct {
	Rank      int    `json:"rank"`
	Uname     string `json:"uname"`
	Face      string `json:"face"`
	Timestamp int    `json:"timestamp"`
	Icon      string `json:"icon"`
	AreaName  string `json:"area_name"`
	URL       string `json:"url"`
	CacheKey  string `json:"cache_key"`
	DmMsg     string `json:"dm_msg"`
}

type LIKE_GUIDE_USER added in v0.11.17

type LIKE_GUIDE_USER struct {
	Cmd  string `json:"cmd"`
	Data struct {
		ShowArea   int    `json:"show_area"`
		LikeText   string `json:"like_text"`
		UID        int    `json:"uid"`
		Identities []int  `json:"identities"`
		MsgType    int    `json:"msg_type"`
		Dmscore    int    `json:"dmscore"`
	} `json:"data"`
}

type LIKE_INFO_V3_CLICK added in v0.5.10

type LIKE_INFO_V3_CLICK struct {
	Cmd  string `json:"cmd"`
	Data struct {
		ShowArea   int    `json:"show_area"`
		MsgType    int    `json:"msg_type"`
		LikeIcon   string `json:"like_icon"`
		UID        int    `json:"uid"`
		LikeText   string `json:"like_text"`
		Uname      string `json:"uname"`
		UnameColor string `json:"uname_color"`
		Identities []int  `json:"identities"`
		FansMedal  struct {
			TargetID         int    `json:"target_id"`
			MedalLevel       int    `json:"medal_level"`
			MedalName        string `json:"medal_name"`
			MedalColor       int    `json:"medal_color"`
			MedalColorStart  int    `json:"medal_color_start"`
			MedalColorEnd    int    `json:"medal_color_end"`
			MedalColorBorder int    `json:"medal_color_border"`
			IsLighted        int    `json:"is_lighted"`
			GuardLevel       int    `json:"guard_level"`
			Special          string `json:"special"`
			IconID           int    `json:"icon_id"`
			AnchorRoomid     int    `json:"anchor_roomid"`
			Score            int    `json:"score"`
		} `json:"fans_medal"`
		ContributionInfo struct {
			Grade int `json:"grade"`
		} `json:"contribution_info"`
	} `json:"data"`
}

type LITTLE_MESSAGE_BOX

type LITTLE_MESSAGE_BOX struct {
	Cmd  string `json:"cmd"`
	Data struct {
		From     string `json:"from"`
		Platform struct {
			Android bool `json:"android"`
			Ios     bool `json:"ios"`
			Web     bool `json:"web"`
		} `json:"platform"`
		Msg     string `json:"msg"`
		Room_id int    `json:"room_id"`
		Type    int    `json:"type"`
	} `json:"data"`
}

type LITTLE_TIPS added in v0.5.10

type LITTLE_TIPS struct {
	Cmd  string `json:"cmd"`
	Data struct {
		Msg string `json:"msg"`
	} `json:"data"`
}

type LIVE added in v0.5.10

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 LIVE_INTERACTIVE_GAME added in v0.5.10

type LIVE_INTERACTIVE_GAME struct {
	Cmd  string `json:"cmd"`
	Data struct {
		Type           int         `json:"type"`
		UID            int         `json:"uid"`
		Uname          string      `json:"uname"`
		Uface          string      `json:"uface"`
		GiftID         int         `json:"gift_id"`
		GiftName       string      `json:"gift_name"`
		GiftNum        int         `json:"gift_num"`
		Price          int         `json:"price"`
		Paid           bool        `json:"paid"`
		Msg            string      `json:"msg"`
		FansMedalLevel int         `json:"fans_medal_level"`
		GuardLevel     int         `json:"guard_level"`
		Timestamp      int         `json:"timestamp"`
		AnchorLottery  interface{} `json:"anchor_lottery"`
		PkInfo         interface{} `json:"pk_info"`
		AnchorInfo     interface{} `json:"anchor_info"`
	} `json:"data"`
}

type LOG_IN_NOTICE added in v0.10.3

type LOG_IN_NOTICE struct {
	Cmd  string `json:"cmd"`
	Data struct {
		NoticeMsg string `json:"notice_msg"`
		ImageWeb  string `json:"image_web"`
		ImageApp  string `json:"image_app"`
	} `json:"data"`
}

type MESSAGEBOX_USER_MEDAL_CHANGE

type MESSAGEBOX_USER_MEDAL_CHANGE struct {
	Cmd  string `json:"cmd"`
	Data struct {
		Type                int    `json:"type"`
		Uid                 int    `json:"uid"`
		Up_uid              int    `json:"up_uid"`
		Medal_name          string `json:"medal_name"`
		Medal_level         int    `json:"medal_level"`
		Medal_color_start   int    `json:"medal_color_start"`
		Medal_color_end     int    `json:"medal_color_end"`
		Medal_color_border  int    `json:"medal_color_border"`
		Guard_level         int    `json:"guard_level"`
		Is_lighted          int    `json:"is_lighted"`
		Unlock              int    `json:"unlock"`
		Unlock_level        int    `json:"unlock_level"`
		Multi_unlock_level  string `json:"multi_unlock_level"`
		Upper_bound_content string `json:"upper_bound_content"`
	} `json:"data"`
}

type PK_BATTLE_PRE_NEW added in v0.5.9

type PK_BATTLE_PRE_NEW struct {
	Cmd       string `json:"cmd"`
	PkStatus  int    `json:"pk_status"`
	PkID      int    `json:"pk_id"`
	Timestamp int    `json:"timestamp"`
	Data      struct {
		BattleType  int         `json:"battle_type"`
		MatchType   int         `json:"match_type"`
		Uname       string      `json:"uname"`
		Face        string      `json:"face"`
		UID         int         `json:"uid"`
		RoomID      int         `json:"room_id"`
		SeasonID    int         `json:"season_id"`
		PreTimer    int         `json:"pre_timer"`
		PkVotesName string      `json:"pk_votes_name"`
		EndWinTask  interface{} `json:"end_win_task"`
	} `json:"data"`
	Roomid int `json:"roomid"`
}

type PK_BATTLE_PROCESS_NEW added in v0.5.9

type PK_BATTLE_PROCESS_NEW struct {
	Cmd       string `json:"cmd"`
	PkID      int    `json:"pk_id"`
	PkStatus  int    `json:"pk_status"`
	Timestamp int    `json:"timestamp"`
	Data      struct {
		BattleType int `json:"battle_type"`
		InitInfo   struct {
			RoomID    int    `json:"room_id"`
			Votes     int    `json:"votes"`
			BestUname string `json:"best_uname"`
		} `json:"init_info"`
		MatchInfo struct {
			RoomID    int    `json:"room_id"`
			Votes     int    `json:"votes"`
			BestUname string `json:"best_uname"`
		} `json:"match_info"`
	} `json:"data"`
}

type PK_BATTLE_START_NEW added in v0.5.9

type PK_BATTLE_START_NEW struct {
	Cmd       string `json:"cmd"`
	PkID      int    `json:"pk_id"`
	PkStatus  int    `json:"pk_status"`
	Timestamp int    `json:"timestamp"`
	Data      struct {
		BattleType    int    `json:"battle_type"`
		FinalHitVotes int    `json:"final_hit_votes"`
		PkStartTime   int    `json:"pk_start_time"`
		PkFrozenTime  int    `json:"pk_frozen_time"`
		PkEndTime     int    `json:"pk_end_time"`
		PkVotesType   int    `json:"pk_votes_type"`
		PkVotesAdd    int    `json:"pk_votes_add"`
		PkVotesName   string `json:"pk_votes_name"`
		StarLightMsg  string `json:"star_light_msg"`
	} `json:"data"`
	Roomid string `json:"roomid"`
}

type PK_LOTTERY_START added in v0.5.9

type PK_LOTTERY_START struct {
	Cmd  string `json:"cmd"`
	Data struct {
		AssetAnimationPic string `json:"asset_animation_pic"`
		AssetIcon         string `json:"asset_icon"`
		FromUser          struct {
			Face  string `json:"face"`
			UID   int    `json:"uid"`
			Uname string `json:"uname"`
		} `json:"from_user"`
		ID        int    `json:"id"`
		MaxTime   int    `json:"max_time"`
		PkID      int    `json:"pk_id"`
		RoomID    int    `json:"room_id"`
		ThankText string `json:"thank_text"`
		Time      int    `json:"time"`
		TimeWait  int    `json:"time_wait"`
		Title     string `json:"title"`
		Weight    int    `json:"weight"`
	} `json:"data"`
}

type POPULARITY_RED_POCKET_NEW added in v0.5.10

type POPULARITY_RED_POCKET_NEW struct {
	Cmd  string `json:"cmd"`
	Data struct {
		LotID       int    `json:"lot_id"`
		StartTime   int    `json:"start_time"`
		CurrentTime int    `json:"current_time"`
		WaitNum     int    `json:"wait_num"`
		Uname       string `json:"uname"`
		UID         int    `json:"uid"`
		Action      string `json:"action"`
		Num         int    `json:"num"`
		GiftName    string `json:"gift_name"`
		GiftID      int    `json:"gift_id"`
		Price       int    `json:"price"`
		NameColor   string `json:"name_color"`
		MedalInfo   struct {
			TargetID         int    `json:"target_id"`
			Special          string `json:"special"`
			IconID           int    `json:"icon_id"`
			AnchorUname      string `json:"anchor_uname"`
			AnchorRoomid     int    `json:"anchor_roomid"`
			MedalLevel       int    `json:"medal_level"`
			MedalName        string `json:"medal_name"`
			MedalColor       int    `json:"medal_color"`
			MedalColorStart  int    `json:"medal_color_start"`
			MedalColorEnd    int    `json:"medal_color_end"`
			MedalColorBorder int    `json:"medal_color_border"`
			IsLighted        int    `json:"is_lighted"`
			GuardLevel       int    `json:"guard_level"`
		} `json:"medal_info"`
	} `json:"data"`
}

type POPULARITY_RED_POCKET_START added in v0.5.10

type POPULARITY_RED_POCKET_START struct {
	Cmd  string `json:"cmd"`
	Data struct {
		LotID           int    `json:"lot_id"`
		SenderUID       int    `json:"sender_uid"`
		SenderName      string `json:"sender_name"`
		SenderFace      string `json:"sender_face"`
		JoinRequirement int    `json:"join_requirement"`
		Danmu           string `json:"danmu"`
		CurrentTime     int    `json:"current_time"`
		StartTime       int    `json:"start_time"`
		EndTime         int    `json:"end_time"`
		LastTime        int    `json:"last_time"`
		RemoveTime      int    `json:"remove_time"`
		ReplaceTime     int    `json:"replace_time"`
		LotStatus       int    `json:"lot_status"`
		H5URL           string `json:"h5_url"`
		UserStatus      int    `json:"user_status"`
		Awards          []struct {
			GiftID   int    `json:"gift_id"`
			GiftName string `json:"gift_name"`
			GiftPic  string `json:"gift_pic"`
			Num      int    `json:"num"`
		} `json:"awards"`
		LotConfigID int `json:"lot_config_id"`
		TotalPrice  int `json:"total_price"`
		WaitNum     int `json:"wait_num"`
	} `json:"data"`
}
type POPULAR_RANK_CHANGED struct {
	Cmd  string `json:"cmd"`
	Data struct {
		UID       int    `json:"uid"`
		Rank      int    `json:"rank"`
		Countdown int    `json:"countdown"`
		Timestamp int    `json:"timestamp"`
		CacheKey  string `json:"cache_key"`
	} `json:"data"`
}

type PREPARING added in v0.5.10

type PREPARING struct {
	Cmd    string `json:"cmd"`
	Roomid string `json:"roomid"`
}

type RECOMMEND_CARD added in v0.5.11

type RECOMMEND_CARD struct {
	Cmd  string `json:"cmd"`
	Data struct {
		TitleIcon     string `json:"title_icon"`
		RecommendList []struct {
			ShoppingCardDetail struct {
				GoodsID             string        `json:"goods_id"`
				GoodsName           string        `json:"goods_name"`
				GoodsPrice          string        `json:"goods_price"`
				GoodsMaxPrice       string        `json:"goods_max_price"`
				SaleStatus          int           `json:"sale_status"`
				CouponName          string        `json:"coupon_name"`
				GoodsIcon           string        `json:"goods_icon"`
				GoodsStatus         int           `json:"goods_status"`
				Source              int           `json:"source"`
				H5URL               string        `json:"h5_url"`
				JumpLink            string        `json:"jump_link"`
				SchemaURL           string        `json:"schema_url"`
				IsPreSale           int           `json:"is_pre_sale"`
				ActivityInfo        interface{}   `json:"activity_info"`
				PreSaleInfo         interface{}   `json:"pre_sale_info"`
				EarlyBirdInfo       interface{}   `json:"early_bird_info"`
				Timestamp           int           `json:"timestamp"`
				CouponDiscountPrice string        `json:"coupon_discount_price"`
				SellingPoint        string        `json:"selling_point"`
				HotBuyNum           int           `json:"hot_buy_num"`
				GiftBuyInfo         []interface{} `json:"gift_buy_info"`
				IsExclusive         bool          `json:"is_exclusive"`
				CouponID            string        `json:"coupon_id"`
				RewardInfo          interface{}   `json:"reward_info"`
				GoodsTagList        interface{}   `json:"goods_tag_list"`
				VirtualExtraInfo    interface{}   `json:"virtual_extra_info"`
				PriceInfo           interface{}   `json:"price_info"`
				BtnInfo             interface{}   `json:"btn_info"`
				GoodsSortID         int           `json:"goods_sort_id"`
			} `json:"shopping_card_detail"`
			RecommendCardExtra interface{} `json:"recommend_card_extra"`
		} `json:"recommend_list"`
		Timestamp int `json:"timestamp"`
	} `json:"data"`
}

type ROOM_CHANGE added in v0.11.17

type ROOM_CHANGE 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 ROOM_LOCK added in v0.11.11

type ROOM_LOCK struct {
	Cmd    string `json:"cmd"`
	Expire string `json:"expire"`
	Roomid int    `json:"roomid"`
}

type SEND_GIFT added in v0.5.10

type SEND_GIFT struct {
	Cmd  string `json:"cmd"`
	Data struct {
		Action         string `json:"action"`
		BatchComboID   string `json:"batch_combo_id"`
		BatchComboSend struct {
			Action        string      `json:"action"`
			BatchComboID  string      `json:"batch_combo_id"`
			BatchComboNum int         `json:"batch_combo_num"`
			BlindGift     interface{} `json:"blind_gift"`
			GiftID        int         `json:"gift_id"`
			GiftName      string      `json:"gift_name"`
			GiftNum       int         `json:"gift_num"`
			SendMaster    interface{} `json:"send_master"`
			UID           int         `json:"uid"`
			Uname         string      `json:"uname"`
		} `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        struct {
			Action     string      `json:"action"`
			ComboID    string      `json:"combo_id"`
			ComboNum   int         `json:"combo_num"`
			GiftID     int         `json:"gift_id"`
			GiftName   string      `json:"gift_name"`
			GiftNum    int         `json:"gift_num"`
			SendMaster interface{} `json:"send_master"`
			UID        int         `json:"uid"`
			Uname      string      `json:"uname"`
		} `json:"combo_send"`
		ComboStayTime  int     `json:"combo_stay_time"`
		ComboTotalCoin int     `json:"combo_total_coin"`
		CritProb       int     `json:"crit_prob"`
		Demarcation    int     `json:"demarcation"`
		Dmscore        int     `json:"dmscore"`
		Draw           int     `json:"draw"`
		Effect         int     `json:"effect"`
		EffectBlock    int     `json:"effect_block"`
		Face           string  `json:"face"`
		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"`
		IsSpecialBatch int     `json:"is_special_batch"`
		Magnification  float64 `json:"magnification"`
		MedalInfo      struct {
			AnchorRoomid     int    `json:"anchor_roomid"`
			AnchorUname      string `json:"anchor_uname"`
			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"`
			Special          string `json:"special"`
			TargetID         int    `json:"target_id"`
		} `json:"medal_info"`
		NameColor         string      `json:"name_color"`
		Num               int         `json:"num"`
		OriginalGiftName  string      `json:"original_gift_name"`
		Price             int         `json:"price"`
		Rcost             int64       `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"`
		TagImage          string      `json:"tag_image"`
		Tid               string      `json:"tid"`
		Timestamp         int         `json:"timestamp"`
		TopList           interface{} `json:"top_list"`
		TotalCoin         int         `json:"total_coin"`
		UID               int         `json:"uid"`
		Uname             string      `json:"uname"`
	} `json:"data"`
}

type STOP_LIVE_ROOM_LIST added in v0.5.9

type STOP_LIVE_ROOM_LIST struct {
	Cmd  string `json:"cmd"`
	Data struct {
		RoomIDList []int `json:"room_id_list"`
	} `json:"data"`
}

type SUPER_CHAT_MESSAGE added in v0.7.1

type SUPER_CHAT_MESSAGE struct {
	Cmd  string `json:"cmd"`
	Data struct {
		BackgroundBottomColor string  `json:"background_bottom_color"`
		BackgroundColor       string  `json:"background_color"`
		BackgroundColorEnd    string  `json:"background_color_end"`
		BackgroundColorStart  string  `json:"background_color_start"`
		BackgroundIcon        string  `json:"background_icon"`
		BackgroundImage       string  `json:"background_image"`
		BackgroundPriceColor  string  `json:"background_price_color"`
		ColorPoint            float64 `json:"color_point"`
		Dmscore               int     `json:"dmscore"`
		EndTime               int     `json:"end_time"`
		Gift                  struct {
			GiftID   int    `json:"gift_id"`
			GiftName string `json:"gift_name"`
			Num      int    `json:"num"`
		} `json:"gift"`
		ID          int `json:"id"`
		IsRanked    int `json:"is_ranked"`
		IsSendAudit int `json:"is_send_audit"`
		MedalInfo   struct {
			AnchorRoomid     int    `json:"anchor_roomid"`
			AnchorUname      string `json:"anchor_uname"`
			GuardLevel       int    `json:"guard_level"`
			IconID           int    `json:"icon_id"`
			IsLighted        int    `json:"is_lighted"`
			MedalColor       string `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"`
			Special          string `json:"special"`
			TargetID         int    `json:"target_id"`
		} `json:"medal_info"`
		Message          string `json:"message"`
		MessageFontColor string `json:"message_font_color"`
		MessageTrans     string `json:"message_trans"`
		Price            int    `json:"price"`
		Rate             int    `json:"rate"`
		StartTime        int    `json:"start_time"`
		Time             int    `json:"time"`
		Token            string `json:"token"`
		TransMark        int    `json:"trans_mark"`
		Ts               int    `json:"ts"`
		UID              int    `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"`
			NameColor  string `json:"name_color"`
			Title      string `json:"title"`
			Uname      string `json:"uname"`
			UserLevel  int    `json:"user_level"`
		} `json:"user_info"`
	} `json:"data"`
	Roomid int `json:"roomid"`
}

type SUPER_CHAT_MESSAGE_JPN added in v0.5.10

type SUPER_CHAT_MESSAGE_JPN struct {
	Cmd  string `json:"cmd"`
	Data struct {
		ID                    string      `json:"id"`
		UID                   string      `json:"uid"`
		Price                 int         `json:"price"`
		Rate                  int         `json:"rate"`
		Message               string      `json:"message"`
		MessageJpn            string      `json:"message_jpn"`
		IsRanked              int         `json:"is_ranked"`
		BackgroundImage       string      `json:"background_image"`
		BackgroundColor       string      `json:"background_color"`
		BackgroundIcon        string      `json:"background_icon"`
		BackgroundPriceColor  string      `json:"background_price_color"`
		BackgroundBottomColor string      `json:"background_bottom_color"`
		Ts                    int         `json:"ts"`
		Token                 string      `json:"token"`
		MedalInfo             interface{} `json:"medal_info"`
		UserInfo              struct {
			Uname      string `json:"uname"`
			Face       string `json:"face"`
			FaceFrame  string `json:"face_frame"`
			GuardLevel int    `json:"guard_level"`
			UserLevel  int    `json:"user_level"`
			LevelColor string `json:"level_color"`
			IsVip      int    `json:"is_vip"`
			IsSvip     int    `json:"is_svip"`
			IsMainVip  int    `json:"is_main_vip"`
			Title      string `json:"title"`
			Manager    int    `json:"manager"`
		} `json:"user_info"`
		Time      int `json:"time"`
		StartTime int `json:"start_time"`
		EndTime   int `json:"end_time"`
		Gift      struct {
			Num      int    `json:"num"`
			GiftID   int    `json:"gift_id"`
			GiftName string `json:"gift_name"`
		} `json:"gift"`
	} `json:"data"`
	Roomid string `json:"roomid"`
}

type USER_TOAST_MSG added in v0.5.10

type USER_TOAST_MSG struct {
	Cmd  string `json:"cmd"`
	Data struct {
		AnchorShow       bool   `json:"anchor_show"`
		Color            string `json:"color"`
		Dmscore          int    `json:"dmscore"`
		EndTime          int    `json:"end_time"`
		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"`
		StartTime        int    `json:"start_time"`
		SvgaBlock        int    `json:"svga_block"`
		TargetGuardCount int    `json:"target_guard_count"`
		ToastMsg         string `json:"toast_msg"`
		UID              int    `json:"uid"`
		Unit             string `json:"unit"`
		UserShow         bool   `json:"user_show"`
		Username         string `json:"username"`
	} `json:"data"`
}

type VIDEO_CONNECTION_JOIN_END added in v0.5.10

type VIDEO_CONNECTION_JOIN_END struct {
	Cmd  string `json:"cmd"`
	Data struct {
		ChannelID   string `json:"channel_id"`
		StartAt     int    `json:"start_at"`
		Toast       string `json:"toast"`
		CurrentTime int    `json:"current_time"`
	} `json:"data"`
	Roomid int `json:"roomid"`
}

type VIDEO_CONNECTION_JOIN_START added in v0.5.10

type VIDEO_CONNECTION_JOIN_START struct {
	Cmd  string `json:"cmd"`
	Data struct {
		Status       int    `json:"status"`
		InvitedUID   int    `json:"invited_uid"`
		ChannelID    string `json:"channel_id"`
		InvitedUname string `json:"invited_uname"`
		InvitedFace  string `json:"invited_face"`
		StartAt      int    `json:"start_at"`
		CurrentTime  int    `json:"current_time"`
	} `json:"data"`
	Roomid int `json:"roomid"`
}

type VIDEO_CONNECTION_MSG added in v0.5.10

type VIDEO_CONNECTION_MSG struct {
	Cmd  string `json:"cmd"`
	Data struct {
		ChannelID   string `json:"channel_id"`
		CurrentTime int    `json:"current_time"`
		Dmscore     int    `json:"dmscore"`
		Toast       string `json:"toast"`
	} `json:"data"`
}

type VOICE_JOIN_LIST added in v0.5.10

type VOICE_JOIN_LIST struct {
	Cmd  string `json:"cmd"`
	Data struct {
		RoomID     int `json:"room_id"`
		Category   int `json:"category"`
		ApplyCount int `json:"apply_count"`
		RedPoint   int `json:"red_point"`
		Refresh    int `json:"refresh"`
	} `json:"data"`
	Roomid int `json:"roomid"`
}

type VOICE_JOIN_ROOM_COUNT_INFO added in v0.5.10

type VOICE_JOIN_ROOM_COUNT_INFO struct {
	Cmd  string `json:"cmd"`
	Data struct {
		RoomID      int `json:"room_id"`
		RootStatus  int `json:"root_status"`
		RoomStatus  int `json:"room_status"`
		ApplyCount  int `json:"apply_count"`
		NotifyCount int `json:"notify_count"`
		RedPoint    int `json:"red_point"`
	} `json:"data"`
	Roomid int `json:"roomid"`
}

type VOICE_JOIN_STATUS added in v0.5.10

type VOICE_JOIN_STATUS struct {
	Cmd  string `json:"cmd"`
	Data struct {
		RoomID       int    `json:"room_id"`
		Status       int    `json:"status"`
		Channel      string `json:"channel"`
		ChannelType  string `json:"channel_type"`
		UID          int    `json:"uid"`
		UserName     string `json:"user_name"`
		HeadPic      string `json:"head_pic"`
		Guard        int    `json:"guard"`
		StartAt      int    `json:"start_at"`
		CurrentTime  int    `json:"current_time"`
		WebShareLink string `json:"web_share_link"`
	} `json:"data"`
	Roomid int `json:"roomid"`
}

type VTR_GIFT_LOTTERY

type VTR_GIFT_LOTTERY struct {
	Cmd  string `json:"cmd"`
	Data struct {
		ActName          string `json:"act_name"`
		AwardUsername    string `json:"award_username"`
		InteractMsg      string `json:"interact_msg"`
		ToastMsg         string `json:"toast_msg"`
		RoomID           int    `json:"room_id"`
		UID              int    `json:"uid"`
		HighlightCol     string `json:"highlight_col"`
		DarkHighlightCol string `json:"dark_highlight_col"`
		LotteryID        string `json:"lottery_id"`
	} `json:"data"`
}

type WARNING added in v0.5.10

type WARNING struct {
	Cmd    string `json:"cmd"`
	Msg    string `json:"msg"`
	Roomid int    `json:"roomid"`
}

type WATCHED_CHANGE added in v0.5.10

type WATCHED_CHANGE struct {
	Cmd  string              `json:"cmd"`
	Data WATCHED_CHANGE_Data `json:"data"`
}

type WATCHED_CHANGE_Data added in v0.5.10

type WATCHED_CHANGE_Data struct {
	Num       int    `json:"num"`
	TextSmall string `json:"text_small"`
	TextLarge string `json:"text_large"`
}

type WEALTH_NOTIFY added in v0.10.5

type WEALTH_NOTIFY struct {
	Cmd  string `json:"cmd"`
	Data struct {
		Flag int `json:"flag"`
		Info struct {
			EffectKey       int   `json:"effect_key"`
			HasItemsChanged int   `json:"has_items_changed"`
			Level           int   `json:"level"`
			SendTime        int64 `json:"send_time"`
			Status          int   `json:"status"`
		} `json:"info"`
	} `json:"data"`
	IsReport bool   `json:"is_report"`
	MsgID    string `json:"msg_id"`
	SendTime int64  `json:"send_time"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL