using System.Collections.Generic; namespace BarrageGrab.Modles { /// /// 礼物信息 /// public class WebCastGift { /// /// 图片信息 /// public GiftImage image { get; set; } /// /// 描述 /// public string describe { get; set; } /// /// 是否通知 /// public bool notify { get; set; } /// /// 持续时长 /// public int duration { get; set; } /// /// ID /// public long id { get; set; } /// /// 用于连麦 /// public bool for_linkmic { get; set; } /// /// 涂鸦 /// public bool doodle { get; set; } /// /// 用于粉丝团 /// public bool for_fansclub { get; set; } /// /// 是否是连击礼物 /// public bool combo { get; set; } /// /// 类型 /// public int type { get; set; } /// /// 钻石数量 /// public int diamond_count { get; set; } /// /// 是否显示在礼物面板上 /// public bool is_displayed_on_panel { get; set; } /// /// 主要效果 ID /// public int primary_effect_id { get; set; } /// /// 名称 /// public string name { get; set; } /// /// 区域 /// public string region { get; set; } /// /// 手动 /// public string manual { get; set; } /// /// 是否为自定义礼物 /// public bool for_custom { get; set; } /// /// 特殊效果 /// public Dictionary special_effects { get; set; } /// /// 图标信息 /// public Icon icon { get; set; } /// /// 行为类型 /// public int action_type { get; set; } /// /// 西瓜子数 /// public int watermelon_seeds { get; set; } /// /// 金特效 /// public string gold_effect { get; set; } /// /// 订阅列表 /// public List subs { get; set; } /// /// 金豆数 /// public int golden_beans { get; set; } /// /// 荣誉等级 /// public int honor_level { get; set; } /// /// 物品类型 /// public int item_type { get; set; } /// /// 方案链接 /// public string scheme_url { get; set; } /// /// 事件名称 /// public string event_name { get; set; } /// /// 贵族等级 /// public int noble_level { get; set; } /// /// 引导链接 /// public string guide_url { get; set; } /// /// 惩罚药物 /// public bool punish_medicine { get; set; } /// /// 是否为门户 /// public bool for_portal { get; set; } /// /// 商业文本 /// public string business_text { get; set; } /// /// 是否为CNY礼物 /// public bool cny_gift { get; set; } /// /// App ID /// public int app_id { get; set; } /// /// VIP等级 /// public int vip_level { get; set; } /// /// 是否灰度 /// public bool is_gray { get; set; } /// /// 灰度方案链接 /// public string gray_scheme_url { get; set; } /// /// 礼物场景 /// public int gift_scene { get; set; } /// /// 触发词语列表 /// public List trigger_words { get; set; } /// /// 礼物Buff信息列表 /// public List gift_buff_infos { get; set; } /// /// 是否为首充礼物 /// public bool for_first_recharge { get; set; } /// /// 发送后动作 /// public int after_send_action { get; set; } /// /// 礼物下线时间 /// public int gift_offline_time { get; set; } /// /// 顶部栏文本 /// public string top_bar_text { get; set; } /// /// 横幅方案链接 /// public string banner_scheme_url { get; set; } /// /// 是否锁定 /// public bool is_locked { get; set; } /// /// 请求额外类型 /// public int req_extra_type { get; set; } /// /// 资产ID列表 /// public List asset_ids { get; set; } /// /// 礼物预览信息 /// public GiftPreviewInfo gift_preview_info { get; set; } /// /// 礼物提示信息 /// public GiftTip gift_tip { get; set; } /// /// 需要扫光次数 /// public int need_sweep_light_count { get; set; } /// /// 分组信息列表 /// public List group_info { get; set; } /// /// 神秘商店状态 /// public int mystery_shop_status { get; set; } /// /// 可选资产ID列表 /// public List optional_asset_ids { get; set; } /// /// 是否禁用心愿单 /// public bool disable_wish_list { get; set; } /// /// 托盘动态图可翻转 /// public bool tray_dynamic_img_flippable { get; set; } /// /// Pico展示动作 /// public int pico_show_action { get; set; } /// /// 选择的动态效果 /// public int selected_dynamic_effect { get; set; } /// /// 业务类型 /// public int biz_type { get; set; } /// /// WebP图片信息 /// public WebpImage webp_image { get; set; } /// /// 礼物来源 /// public int gift_source { get; set; } public class GiftImage { /// /// 图片 URL 列表 /// public List url_list { get; set; } /// /// 图片 URI /// public string uri { get; set; } /// /// 图片高度 /// public int height { get; set; } /// /// 图片宽度 /// public int width { get; set; } /// /// 平均颜色 /// public string avg_color { get; set; } /// /// 图片类型 /// public int image_type { get; set; } /// /// 开放的网页 URL /// public string open_web_url { get; set; } /// /// 是否是动画 /// public bool is_animated { get; set; } /// /// 弹性设置列表 /// public List flex_setting_list { get; set; } /// /// 文本设置列表 /// public List text_setting_list { get; set; } } public class Icon { /// /// 图标 URL 列表 /// public List url_list { get; set; } /// /// 图标 URI /// public string uri { get; set; } /// /// 图标高度 /// public int height { get; set; } /// /// 图标宽度 /// public int width { get; set; } /// /// 平均颜色 /// public string avg_color { get; set; } /// /// 图标类型 /// public int image_type { get; set; } /// /// 开放的网页 URL /// public string open_web_url { get; set; } /// /// 是否是动画 /// public bool is_animated { get; set; } /// /// 弹性设置列表 /// public List flex_setting_list { get; set; } /// /// 文本设置列表 /// public List text_setting_list { get; set; } } public class GiftTipDisplayTextKeyPiece { /// /// 键 /// public string key { get; set; } /// /// 默认模式 /// public string default_pattern { get; set; } /// /// 片段列表 /// public List pieces { get; set; } /// /// 模式信息 /// public Dictionary schema_infos { get; set; } } public class GiftTipDisplayText { /// /// 显示文本键 /// public GiftTipDisplayTextKeyPiece display_text { get; set; } } public class GiftTip { /// /// 显示文本 /// public GiftTipDisplayText display_text { get; set; } /// /// 背景颜色 /// public string background_color { get; set; } /// /// 剩余时长 /// public int remaining_duration { get; set; } /// /// 倒计时截止时间 /// public int countdown_deadline_time { get; set; } } public class GiftPreviewInfo { /// /// 锁定状态 /// public int lock_status { get; set; } /// /// 客户端阻止使用网页链接 /// public bool client_block_use_scheme_url { get; set; } /// /// 阻止网页链接 /// public string block_scheme_url { get; set; } /// /// 客户端检查剩余钻石 /// public bool client_check_left_diamond { get; set; } /// /// 阻止提示 /// public string block_toast { get; set; } } public class GroupInfo { /// /// 组数量 /// public int group_count { get; set; } /// /// 组文本 /// public string group_text { get; set; } } public class WebpImage { /// /// 图片 URL 列表 /// public List url_list { get; set; } /// /// 图片 URI /// public string uri { get; set; } /// /// 图片高度 /// public int height { get; set; } /// /// 图片宽度 /// public int width { get; set; } /// /// 平均颜色 /// public string avg_color { get; set; } /// /// 图片类型 /// public int image_type { get; set; } /// /// 开放的网页 URL /// public string open_web_url { get; set; } /// /// 是否是动画 /// public bool is_animated { get; set; } /// /// 弹性设置列表 /// public List flex_setting_list { get; set; } /// /// 文本设置列表 /// public List text_setting_list { get; set; } } } /// /// 礼物组信息 /// public class GiftsInfo { /// /// 新礼物ID /// public int new_gift_id { get; set; } /// /// 粉丝团礼物ID列表 /// public List fansclub_gift_ids { get; set; } /// /// 快速礼物ID /// public int speedy_gift_id { get; set; } /// /// 礼物词语 /// public string gift_words { get; set; } /// /// 礼物组信息列表 /// public List gift_group_infos { get; set; } /// /// 免费礼物项列表 /// public List free_cell_items { get; set; } /// /// 荣耀礼物ID列表 /// public List honor_gift_ids { get; set; } /// /// 游戏礼物项列表 /// public List game_gift_items { get; set; } /// /// 贵族礼物ID列表 /// public List noble_gift_ids { get; set; } /// /// 是否隐藏充值入口 /// public bool hide_recharge_entry { get; set; } /// /// 礼物入口图标信息 /// public GiftEntranceIcon gift_entrance_icon { get; set; } /// /// VIP礼物ID列表 /// public List vip_gift_ids { get; set; } /// /// 礼物连击信息列表 /// public List gift_combo_infos { get; set; } /// /// 快速礼物弹窗信息 /// public SpeedyGiftPopupInfo speedy_gift_popup_info { get; set; } /// /// 首充快速礼物ID /// public int first_recharge_speedy_gift_id { get; set; } /// /// 消息处理过滤器 /// public MsgProcessFilter msg_process_filter { get; set; } /// /// 额外参数 /// public ExtraParams extra_params { get; set; } /// /// 连击信息 /// public class GiftComboInfo { /// /// 连击次数 /// public int combo_count { get; set; } /// /// 连击效果图片信息 /// public ComboEffectImage combo_effect_img { get; set; } public class ComboEffectImage { /// /// 图片URL列表 /// public List url_list { get; set; } /// /// 图片URI /// public string uri { get; set; } /// /// 图片高度 /// public int height { get; set; } /// /// 图片宽度 /// public int width { get; set; } /// /// 平均颜色 /// public string avg_color { get; set; } /// /// 图片类型 /// public int image_type { get; set; } /// /// 打开网页链接 /// public string open_web_url { get; set; } /// /// 是否为动画 /// public bool is_animated { get; set; } /// /// 弹性设置列表 /// public List flex_setting_list { get; set; } /// /// 文本设置列表 /// public List text_setting_list { get; set; } } } public class GiftGroupInfo { /// /// 礼物组数量 /// public int group_count { get; set; } /// /// 礼物组文本 /// public string group_text { get; set; } } public class GiftEntranceIcon { /// /// 图片URL列表 /// public List url_list { get; set; } // ... (其他字段和类型同 ComboEffectImage) } public class SpeedyGiftPopupInfo { /// /// 工具栏图标方案URL /// public string toolbar_icon_scheme_url { get; set; } /// /// 弹出信息列表 /// public List pop_up_info { get; set; } /// /// 额外信息 /// public object extra { get; set; } } public class MsgProcessFilter { // ... (这里可能还有其他字段,需要查看实际 JSON 结构) } public class ExtraParams { /// /// 预测字典 /// public PredictDict predict_dict { get; set; } } public class PredictDict { // ... (这里可能还有其他字段,需要查看实际 JSON 结构) } } /// /// Response 包装器 /// public class WebCastGiftPack { /// /// 礼物组 /// public GiftsInfo gifts_info { get; set; } /// /// 礼物列表 /// public List gifts { get; set; } } }