forked from tejado/pgoapi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pokemon.proto
100 lines (84 loc) · 2.21 KB
/
pokemon.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
message RequestEnvelop {
required int32 unknown1 = 1;
optional int64 rpc_id = 3;
repeated Requests requests = 4;
optional Unknown6 unknown6 = 6;
optional fixed64 latitude = 7;
optional fixed64 longitude = 8;
optional fixed64 altitude = 9;
optional AuthInfo auth = 10;
optional int64 unknown12 = 12;
message Requests {
required int32 type = 1;
optional Unknown3 message = 2;
}
message Unknown3 {
required string unknown4 = 1;
}
message Unknown6 {
required int32 unknown1 = 1;
required Unknown2 unknown2 = 2;
message Unknown2 {
required bytes unknown1 = 1;
}
}
message AuthInfo {
required string provider = 1;
required JWT token = 2;
message JWT {
required string contents = 1;
required int32 unknown13 = 2;
}
}
}
message ResponseEnvelop {
required int32 unknown1 = 1;
optional int64 unknown2 = 2;
optional string api_url = 3;
optional Unknown6 unknown6 = 6;
optional Unknown7 unknown7 = 7;
repeated Payload payload = 100;
message Unknown6 {
required int32 unknown1 = 1;
required Unknown2 unknown2 = 2;
message Unknown2 {
required bytes unknown1 = 1;
}
}
message Unknown7 {
optional bytes unknown71 = 1;
optional int64 unknown72 = 2;
optional bytes unknown73 = 3;
}
message Payload {
required int32 unknown1 = 1;
optional Profile profile = 2;
}
message Profile {
required int64 creation_time = 1;
optional string username = 2;
optional int32 team = 5;
optional bytes tutorial = 7;
optional AvatarDetails avatar = 8;
optional int32 poke_storage = 9;
optional int32 item_storage = 10;
optional DailyBonus daily_bonus = 11;
optional bytes unknown12 = 12;
optional bytes unknown13 = 13;
repeated Currency currency = 14;
message AvatarDetails {
optional int32 unknown2 = 2;
optional int32 unknown3 = 3;
optional int32 unknown9 = 9;
optional int32 unknown10 = 10;
}
message DailyBonus {
optional int64 NextCollectTimestampMs = 1;
optional int64 NextDefenderBonusCollectTimestampMs = 2;
}
message Currency {
required string type = 1;
optional int32 amount = 2;
}
}
}