You've already forked XiguaLiveDanmakuHelper
解析成功,待继续发掘有用数据
This commit is contained in:
@ -1,99 +1,11 @@
|
||||
syntax = "proto2";
|
||||
// 用户信息
|
||||
message User {
|
||||
// 头像
|
||||
message Avatar {
|
||||
optional string url = 1;
|
||||
optional string id = 2;
|
||||
}
|
||||
// 头衔
|
||||
message Badge {
|
||||
message FanClubText {
|
||||
required string text = 1;
|
||||
optional string color = 2;
|
||||
required int32 level = 3;
|
||||
}
|
||||
repeated string url = 1;
|
||||
optional string localUrl = 2;
|
||||
optional int32 height = 3;
|
||||
optional int32 width = 4;
|
||||
// 3 房管
|
||||
// 6 贵族
|
||||
// 7 粉丝团
|
||||
optional int32 type = 6;
|
||||
optional string clickTo = 7;
|
||||
optional FanClubText fanClubText = 8;
|
||||
}
|
||||
// 花钱等级
|
||||
message PayGrade {
|
||||
optional int32 level = 6 [default = 0];
|
||||
optional string unknownThing = 13;
|
||||
required Badge badge = 19;
|
||||
}
|
||||
// 荣誉等级
|
||||
message HonorLevel {
|
||||
required Badge badge = 19;
|
||||
}
|
||||
// 贵族
|
||||
message Noble {
|
||||
|
||||
}
|
||||
required int32 id = 1;
|
||||
required string nickname = 3;
|
||||
required int32 gender = 4;
|
||||
// 这个顺序可能有点迷,不是很清楚
|
||||
required Avatar avatarThumb = 9;
|
||||
optional Avatar avatarMedium = 10;
|
||||
optional Avatar avatarLarge = 11;
|
||||
repeated Badge badge = 21;
|
||||
required PayGrade payGrade = 23;
|
||||
}
|
||||
// 样式
|
||||
message Style {
|
||||
optional string color = 1;
|
||||
optional int32 fontWeight = 4;
|
||||
}
|
||||
// 礼物
|
||||
message Gift {
|
||||
message Detail {
|
||||
required string gift_id = 1;
|
||||
required string gift_name = 2;
|
||||
}
|
||||
required int32 id = 1;
|
||||
required Detail gift = 2;
|
||||
}
|
||||
import "XiguaCommon.proto";
|
||||
|
||||
|
||||
message XiguaLiveRoom {
|
||||
message XiguaLive {
|
||||
message Data {
|
||||
message Message {
|
||||
// 通用定义
|
||||
message Common {
|
||||
// 自定义显示信息
|
||||
message DisplayText {
|
||||
// 参数
|
||||
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;
|
||||
}
|
||||
required string method = 1;
|
||||
required string format = 2;
|
||||
optional Style bgStyle = 3;
|
||||
optional Params params = 4;
|
||||
}
|
||||
optional string method = 1;
|
||||
optional int32 msg_id = 2;
|
||||
optional int32 room_id = 3;
|
||||
optional int32 create_time = 4;
|
||||
optional DisplayText displayText = 8;
|
||||
}
|
||||
required Common common = 1;
|
||||
required CommonInfo commonInfo = 1;
|
||||
optional string content = 3;
|
||||
}
|
||||
// WebcastChatMessage 聊天
|
||||
|
35
Demo/XiguaCommon.proto
Normal file
35
Demo/XiguaCommon.proto
Normal file
@ -0,0 +1,35 @@
|
||||
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;
|
||||
}
|
10
Demo/XiguaGift.proto
Normal file
10
Demo/XiguaGift.proto
Normal file
@ -0,0 +1,10 @@
|
||||
syntax = "proto2";
|
||||
// 礼物
|
||||
message Gift {
|
||||
message Detail {
|
||||
required string gift_id = 1;
|
||||
required string gift_name = 2;
|
||||
}
|
||||
required int32 id = 1;
|
||||
required Detail gift = 2;
|
||||
}
|
68
Demo/XiguaUser.proto
Normal file
68
Demo/XiguaUser.proto
Normal file
@ -0,0 +1,68 @@
|
||||
syntax = "proto2";
|
||||
// 用户信息
|
||||
message User {
|
||||
// 头像
|
||||
message Avatar {
|
||||
required string url = 1;
|
||||
optional string id = 2;
|
||||
}
|
||||
// 头衔
|
||||
message Badge {
|
||||
message FanClubText {
|
||||
required string text = 1;
|
||||
optional string color = 2;
|
||||
required int32 level = 3;
|
||||
}
|
||||
repeated string url = 1;
|
||||
optional string localUrl = 2;
|
||||
optional int32 height = 3;
|
||||
optional int32 width = 4;
|
||||
// 3 房管
|
||||
// 6 贵族
|
||||
// 7 粉丝团
|
||||
optional int32 type = 6;
|
||||
optional string clickTo = 7;
|
||||
optional FanClubText fanClubText = 8;
|
||||
}
|
||||
// 粉丝和粉
|
||||
message Follow {
|
||||
optional int32 following = 1 [default = 0];
|
||||
optional int32 follower = 2 [default = 0];
|
||||
}
|
||||
// 花钱等级
|
||||
message PayGrade {
|
||||
required int32 current = 1;
|
||||
required int32 level = 6;
|
||||
optional int32 currentLevelNeed = 10;
|
||||
optional int32 nextLevelNeed = 11;
|
||||
optional string content = 13;
|
||||
required Badge badge = 19;
|
||||
optional int32 toNextLevelNeed = 21;
|
||||
}
|
||||
// 荣誉等级
|
||||
message HonorLevel {
|
||||
required Badge badge = 19;
|
||||
}
|
||||
// 贵族
|
||||
message Noble {
|
||||
message NobleBoarder {
|
||||
repeated string urlList = 1;
|
||||
required string uri = 2;
|
||||
optional int32 height = 3;
|
||||
optional int32 width = 4;
|
||||
}
|
||||
required string content = 4;
|
||||
optional NobleBoarder boarder = 8;
|
||||
}
|
||||
required int32 id = 1;
|
||||
required string nickname = 3;
|
||||
required int32 gender = 4;
|
||||
// 这个顺序可能有点迷,不是很清楚
|
||||
required Avatar avatarThumb = 9;
|
||||
optional Avatar avatarMedium = 10;
|
||||
optional Avatar avatarLarge = 11;
|
||||
repeated Badge badge = 21;
|
||||
optional Follow follow = 22;
|
||||
required PayGrade payGrade = 23;
|
||||
required int32 totalPaid = 34;
|
||||
}
|
Reference in New Issue
Block a user