This repository has been archived on 2022-05-30. You can view files and clone it, but cannot push or open issues or pull requests.
XiguaLiveDanmakuHelper/Demo/XiguaCommon.proto

35 lines
739 B
Protocol Buffer

syntax = "proto2";
import "XiguaUser.proto";
import "XiguaGift.proto";
// 样式
message Style {
optional string color = 1;
optional int32 fontWeight = 4;
}
// 参数
message Params {
// 1 字符串
// 11 用户
// 12 礼物
required int32 type = 1;
optional Style style = 2;
optional string string = 11;
optional User user = 21;
optional Gift gift = 22;
}
// 自定义显示信息
message DisplayText {
// 参数
required string method = 1;
required string format = 2;
optional Style bgStyle = 3;
optional Params params = 4;
}
// 通用定义
message CommonInfo {
optional string method = 1;
optional int32 msg_id = 2;
optional int32 room_id = 3;
optional int32 create_time = 4;
optional DisplayText displayText = 8;
}