-
Notifications
You must be signed in to change notification settings - Fork 349
/
class_name_registers.go
77 lines (64 loc) · 1.82 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
/*
* 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 sync
const (
Predicate_sync_updatesMe = "sync_updatesMe"
Predicate_sync_updatesNotMe = "sync_updatesNotMe"
Predicate_sync_pushUpdates = "sync_pushUpdates"
Predicate_sync_pushUpdatesIfNot = "sync_pushUpdatesIfNot"
Predicate_sync_pushBotUpdates = "sync_pushBotUpdates"
Predicate_sync_pushRpcResult = "sync_pushRpcResult"
Predicate_sync_broadcastUpdates = "sync_broadcastUpdates"
)
var clazzNameRegisters2 = map[string]map[int]int32{
Predicate_sync_updatesMe: {
0: 1614568688, // 0x603c5cf0
},
Predicate_sync_updatesNotMe: {
0: 16458447, // 0xfb22cf
},
Predicate_sync_pushUpdates: {
0: -1895114306, // 0x8f0ad9be
},
Predicate_sync_pushUpdatesIfNot: {
0: 1074085860, // 0x40053fe4
},
Predicate_sync_pushBotUpdates: {
0: -1379667968, // 0xadc3f000
},
Predicate_sync_pushRpcResult: {
0: -1874085983, // 0x904bb7a1
},
Predicate_sync_broadcastUpdates: {
0: -169648970, // 0xf5e35cb6
},
}
var clazzIdNameRegisters2 = map[int32]string{
1614568688: Predicate_sync_updatesMe, // 0x603c5cf0
16458447: Predicate_sync_updatesNotMe, // 0xfb22cf
-1895114306: Predicate_sync_pushUpdates, // 0x8f0ad9be
1074085860: Predicate_sync_pushUpdatesIfNot, // 0x40053fe4
-1379667968: Predicate_sync_pushBotUpdates, // 0xadc3f000
-1874085983: Predicate_sync_pushRpcResult, // 0x904bb7a1
-169648970: Predicate_sync_broadcastUpdates, // 0xf5e35cb6
}
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
}