-
Notifications
You must be signed in to change notification settings - Fork 352
/
class_name_registers.go
107 lines (89 loc) · 3.03 KB
/
class_name_registers.go
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
101
102
103
104
105
106
107
/*
* WARNING! All changes made in this file will be lost!
* Created from 'scheme.tl' by 'mtprotoc'
*
* Copyright (c) 2023-present, Teamgram Authors.
* All rights reserved.
*
* Author: Benqi (wubenqi@gmail.com)
*/
package session
const (
Predicate_sessionClientEvent = "sessionClientEvent"
Predicate_sessionClientData = "sessionClientData"
Predicate_httpSessionData = "httpSessionData"
Predicate_session_queryAuthKey = "session_queryAuthKey"
Predicate_session_setAuthKey = "session_setAuthKey"
Predicate_session_createSession = "session_createSession"
Predicate_session_sendDataToSession = "session_sendDataToSession"
Predicate_session_sendHttpDataToSession = "session_sendHttpDataToSession"
Predicate_session_closeSession = "session_closeSession"
Predicate_session_pushUpdatesData = "session_pushUpdatesData"
Predicate_session_pushSessionUpdatesData = "session_pushSessionUpdatesData"
Predicate_session_pushRpcResultData = "session_pushRpcResultData"
)
var clazzNameRegisters2 = map[string]map[int]int32{
Predicate_sessionClientEvent: {
0: -739769057, // 0xd3e8051f
},
Predicate_sessionClientData: {
0: 825806990, // 0x3138d08e
},
Predicate_httpSessionData: {
0: -606579889, // 0xdbd8534f
},
Predicate_session_queryAuthKey: {
0: 1798174801, // 0x6b2df851
},
Predicate_session_setAuthKey: {
0: 487672075, // 0x1d11490b
},
Predicate_session_createSession: {
0: 1091351053, // 0x410cb20d
},
Predicate_session_sendDataToSession: {
0: -2023019028, // 0x876b2dec
},
Predicate_session_sendHttpDataToSession: {
0: -1142152274, // 0xbbec23ae
},
Predicate_session_closeSession: {
0: 393200211, // 0x176fc253
},
Predicate_session_pushUpdatesData: {
0: 1075152191, // 0x4015853f
},
Predicate_session_pushSessionUpdatesData: {
0: 106898165, // 0x65f22f5
},
Predicate_session_pushRpcResultData: {
0: 556344000, // 0x212922c0
},
}
var clazzIdNameRegisters2 = map[int32]string{
-739769057: Predicate_sessionClientEvent, // 0xd3e8051f
825806990: Predicate_sessionClientData, // 0x3138d08e
-606579889: Predicate_httpSessionData, // 0xdbd8534f
1798174801: Predicate_session_queryAuthKey, // 0x6b2df851
487672075: Predicate_session_setAuthKey, // 0x1d11490b
1091351053: Predicate_session_createSession, // 0x410cb20d
-2023019028: Predicate_session_sendDataToSession, // 0x876b2dec
-1142152274: Predicate_session_sendHttpDataToSession, // 0xbbec23ae
393200211: Predicate_session_closeSession, // 0x176fc253
1075152191: Predicate_session_pushUpdatesData, // 0x4015853f
106898165: Predicate_session_pushSessionUpdatesData, // 0x65f22f5
556344000: Predicate_session_pushRpcResultData, // 0x212922c0
}
func GetClazzID(clazzName string, layer int) int32 {
if m, ok := clazzNameRegisters2[clazzName]; ok {
m2, ok2 := m[layer]
if ok2 {
return m2
}
m2, ok2 = m[0]
if ok2 {
return m2
}
}
return 0
}