syntax = "proto2";

package VideoRoomPKResult;

option java_package = "com.miaole.live.protocol.response";
option java_outer_classname = "VideoRoomPKResult";

// 能否开启娱乐对战标识
message StartGameBattleInfo {
  optional bool flag = 1; // 能否开启：true-是 false-否
}

// 对战时间列表
message VideoRoomPkTimeList {
    repeated VideoRoomPkTimeConf list = 1; // 时间配置列表
}

// 对战时间配置
message VideoRoomPkTimeConf {
  optional int32 timeValue = 1; // 时间值
  optional int32 timeUnit = 2; // 时间单位 （1-秒 2-分 3-时）
  optional string timeDesc = 3; // 描述
}

// 助力礼物列表
message AssistGiftList {
  repeated AssistGiftConf list = 1; // 助力礼物列表
}

// 助力礼物信息
message AssistGiftConf {
  optional string giftId = 1; // 礼物ID
  optional string giftName = 2; // 礼物名称
  optional string giftUrl = 3; // 礼物缩略图
  optional int32 requireDiamond = 4; // 所需钻石
}

// 下发PK对战信息广播
message PKBattleInfoBroadcast {
  optional int32 remainDuration = 1; // 剩余时长（单位：秒）
  optional int32 pkStatus = 2; // 当前PK状态（0-自然结束 1-进行中 2-人为中断 3-隐藏）
  optional PKBattleAnchorInfo redAnchorInfo = 3; // 红方主播信息
  optional PKBattleAnchorInfo blueAnchorInfo = 4; // 蓝方主播信息
}

// 主播相关信息
message PKBattleAnchorInfo {
  optional string anchorId = 1; // 主播ID
  optional string anchorNickName = 2; // 主播昵称
  optional string anchorImage = 3; // 主播头像
  optional int32 score = 4; // 当前助力值
  optional string assistGiftId = 5; // 助力礼物ID
  optional string assistGiftName = 6; // 助力礼物昵称
  optional string assistGiftImage = 7; // 助力礼物图像
  repeated SendGiftInfo SendGiftInfoList = 8; // 送礼人相关信息
}

// 送礼人相关信息
message SendGiftInfo {
  optional string sendUserId = 1; // 送礼人ID
  optional string sendUserNickName = 2; // 送礼人昵称
  optional string sendUserImage = 3; // 送礼人头像
  optional int32 sendUserScore = 4; // 送礼人助力总值
}
