MCPcopy Create free account
hub / github.com/cinit/TMoe / initialize

Method initialize

app/src/main/java/cc/ioctl/tmoe/td/binding/User.kt:31–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29
30
31 fun initialize() {
32 if (!initialized) {
33 synchronized(User::class.java) {
34 klass = Initiator.loadClass("org.telegram.tgnet.TLRPC\$User")
35 _id = Reflex.findField(klass, PrimTypes.LONG, "id")
36 _first_name = Reflex.findField(klass, String::class.java, "first_name")
37 _last_name = Reflex.findField(klass, String::class.java, "last_name")
38 _username = Reflex.findField(klass, String::class.java, "username")
39 _access_hash = Reflex.findField(klass, PrimTypes.LONG, "access_hash")
40 _phone = Reflex.findField(klass, String::class.java, "phone")
41 _status = Reflex.findField(klass, null, "status")
42 _flags = Reflex.findField(klass, PrimTypes.INT, "flags")
43 _contact = Reflex.findField(klass, PrimTypes.BOOLEAN, "contact")
44 _mutual_contact = Reflex.findField(klass, PrimTypes.BOOLEAN, "mutual_contact")
45 _deleted = Reflex.findField(klass, PrimTypes.BOOLEAN, "deleted")
46 _bot = Reflex.findField(klass, PrimTypes.BOOLEAN, "bot")
47 _min = Reflex.findField(klass, PrimTypes.BOOLEAN, "min")
48 _flags2 = Reflex.findField(klass, PrimTypes.INT, "flags")
49 initialized = true
50 }
51 }
52 }
53
54 }
55

Callers

nothing calls this directly

Calls 2

findFieldMethod · 0.80
loadClassMethod · 0.45

Tested by

no test coverage detected