Пример #1
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.dcId     = StreamingUtils.readInt(stream);
     this.volumeId = StreamingUtils.readLong(stream);
     this.localId  = StreamingUtils.readInt(stream);
     this.secret   = StreamingUtils.readLong(stream);
 }
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.fileId         = StreamingUtils.readLong(stream);
     this.filePart       = StreamingUtils.readInt(stream);
     this.fileTotalParts = StreamingUtils.readInt(stream);
     this.bytes          = StreamingUtils.readTLBytes(stream, context);
 }
Пример #3
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     base.randomId = StreamingUtils.readLong(stream);
     this.ttl      = StreamingUtils.readInt(stream);
     this.message  = StreamingUtils.readTLString(stream);
     this.media    = StreamingUtils.readTLObject(stream, context);
 }
Пример #4
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.nonce       = StreamingUtils.readBytes(0x10, stream);
     this.serverNonce = StreamingUtils.readBytes(0x10, stream);
     this.retryId     = StreamingUtils.readLong(stream);
     this.gb          = StreamingUtils.readTLBytes(stream);
 }
Пример #5
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     base.randomId = StreamingUtils.readLong(stream);
     base.chatId   = StreamingUtils.readInt(stream);
     base.date     = StreamingUtils.readInt(stream);
     base.bytes    = StreamingUtils.readTLBytes(stream, context);
 }
Пример #6
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.msgId       = StreamingUtils.readLong(stream);
     this.answerMsgId = StreamingUtils.readLong(stream);
     this.bytes       = StreamingUtils.readInt(stream);
     this.state       = StreamingUtils.readInt(stream);
 }
Пример #7
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     base.id             = StreamingUtils.readLong(stream);
     base.parts          = StreamingUtils.readInt(stream);
     base.md5Checksum    = StreamingUtils.readTLString(stream);
     base.keyFingerprint = StreamingUtils.readInt(stream);
 }
Пример #8
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.permAuthKeyId    = StreamingUtils.readLong(stream);
     this.nonce            = StreamingUtils.readLong(stream);
     this.expiresAt        = StreamingUtils.readInt(stream);
     this.encryptedMessage = StreamingUtils.readTLBytes(stream, context);
 }
Пример #9
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.time = StreamingUtils.readDouble(stream);
     this.type = StreamingUtils.readTLString(stream);
     this.peer = StreamingUtils.readLong(stream);
     this.data = StreamingUtils.readTLString(stream);
 }
Пример #10
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     base.badMsgId      = StreamingUtils.readLong(stream);
     base.badMsqSeqno   = StreamingUtils.readInt(stream);
     base.errorCode     = StreamingUtils.readInt(stream);
     base.newServerSalt = StreamingUtils.readLong(stream);
 }
Пример #11
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.flags      = StreamingUtils.readInt(stream);
     base.id         = StreamingUtils.readInt(stream);
     this.accessHash = StreamingUtils.readLong(stream);
     this.title      = StreamingUtils.readTLString(stream);
 }
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.peer     = StreamingUtils.readTLObject(stream, context);
     this.randomId = StreamingUtils.readLong(stream);
     this.data     = StreamingUtils.readTLBytes(stream, context);
     this.file     = StreamingUtils.readTLObject(stream, context);
 }
Пример #13
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.clientId  = StreamingUtils.readLong(stream);
     this.phone     = StreamingUtils.readTLString(stream);
     this.firstName = StreamingUtils.readTLString(stream);
     this.lastName  = StreamingUtils.readTLString(stream);
 }
Пример #14
0
        public override void deserializeBody(InputStream stream, TLContext context)
        {
            this.messageId = StreamingUtils.readLong(stream);
            int minSize = stream.available();

            this.content = BytesCache.getInstance().allocate(minSize);
            StreamingUtils.readBytes(this.content, 0, minSize, stream);
        }
Пример #15
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     base.id             = StreamingUtils.readLong(stream);
     this.accessHash     = StreamingUtils.readLong(stream);
     this.size           = StreamingUtils.readInt(stream);
     this.dcId           = StreamingUtils.readInt(stream);
     this.keyFingerprint = StreamingUtils.readInt(stream);
 }
Пример #16
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.id      = StreamingUtils.readLong(stream);
     this.ip      = StreamingUtils.readTLString(stream);
     this.ipv6    = StreamingUtils.readTLString(stream);
     this.port    = StreamingUtils.readInt(stream);
     this.peerTag = StreamingUtils.readTLBytes(stream, context);
 }
Пример #17
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     base.id            = StreamingUtils.readInt(stream);
     this.accessHash    = StreamingUtils.readLong(stream);
     this.date          = StreamingUtils.readInt(stream);
     this.adminId       = StreamingUtils.readInt(stream);
     this.participantId = StreamingUtils.readInt(stream);
 }
Пример #18
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.nonce         = StreamingUtils.readBytes(0x10, stream);
     this.serverNonce   = StreamingUtils.readBytes(0x10, stream);
     this.p             = StreamingUtils.readTLBytes(stream);
     this.q             = StreamingUtils.readTLBytes(stream);
     this.fingerPrint   = StreamingUtils.readLong(stream);
     this.encryptedData = StreamingUtils.readTLBytes(stream);
 }
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.id         = StreamingUtils.readInt(stream);
     this.accessHash = StreamingUtils.readLong(stream);
     this.date       = StreamingUtils.readInt(stream);
     this.mimetype   = StreamingUtils.readTLString(stream);
     this.size       = StreamingUtils.readInt(stream);
     this.thumb      = StreamingUtils.readTLObject(stream, context);
     this.dcId       = StreamingUtils.readInt(stream);
     this.attributes = StreamingUtils.readTLVector(stream, context);
 }
Пример #20
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.flags   = StreamingUtils.readInt(stream);
     this.queryId = StreamingUtils.readLong(stream);
     this.userId  = StreamingUtils.readInt(stream);
     this.query   = StreamingUtils.readTLString(stream);
     if ((this.flags & 1) != 0)
     {
         this.geo = StreamingUtils.readTLObject(stream, context);
     }
     this.offset = StreamingUtils.readTLString(stream);
 }
Пример #21
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.flags = StreamingUtils.readInt(stream);
     base.id    = StreamingUtils.readInt(stream);
     if ((this.flags & 1) != 0)
     {
         this.accessHash = StreamingUtils.readLong(stream);
     }
     if ((this.flags & 2) != 0)
     {
         this.firstName = StreamingUtils.readTLString(stream);
     }
     if ((this.flags & 4) != 0)
     {
         this.lastName = StreamingUtils.readTLString(stream);
     }
     if ((this.flags & 8) != 0)
     {
         this.userName = StreamingUtils.readTLString(stream);
     }
     if ((this.flags & 0x10) != 0)
     {
         this.phone = StreamingUtils.readTLString(stream);
     }
     if ((this.flags & 0x20) != 0)
     {
         this.photo = StreamingUtils.readTLObject(stream, context);
     }
     if ((this.flags & 0x40) != 0)
     {
         this.status = StreamingUtils.readTLObject(stream, context);
     }
     if ((this.flags & 0x4000) != 0)
     {
         this.botInfoVersion = StreamingUtils.readInt(stream);
     }
     if ((this.flags & 0x40000) != 0)
     {
         this.restrictionReason = StreamingUtils.readTLString(stream);
     }
     if ((this.flags & 0x80000) != 0)
     {
         this.botInlinePlaceholder = StreamingUtils.readTLString(stream);
     }
     if ((this.flags & 0x200000) != 0)
     {
         this.langCode = StreamingUtils.readTLString(stream);
     }
 }
Пример #22
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.flags = StreamingUtils.readInt(stream);
     this.peer  = StreamingUtils.readTLObject(stream, context);
     if ((this.flags & 1) != 0)
     {
         this.replyToMsgId = StreamingUtils.readInt(stream);
     }
     this.media    = StreamingUtils.readTLObject(stream, context);
     this.randomId = StreamingUtils.readLong(stream);
     if ((this.flags & 4) != 0)
     {
         this.replyMarkup = StreamingUtils.readTLObject(stream, context);
     }
 }
Пример #23
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.flags        = StreamingUtils.readInt(stream);
     this.queryId      = StreamingUtils.readLong(stream);
     this.userId       = StreamingUtils.readInt(stream);
     this.msgId        = StreamingUtils.readTLObject(stream, context);
     this.chatInstance = StreamingUtils.readInt(stream);
     if ((this.flags & 1) != 0)
     {
         this.data = StreamingUtils.readTLBytes(stream, context);
     }
     if ((this.flags & 2) != 0)
     {
         this.gameShortName = StreamingUtils.readTLString(stream);
     }
 }
Пример #24
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     base.deserializeBody(stream, context);
     this.hash          = StreamingUtils.readLong(stream);
     this.flags         = StreamingUtils.readInt(stream);
     this.deviceModel   = StreamingUtils.readTLString(stream);
     this.platform      = StreamingUtils.readTLString(stream);
     this.systemVersion = StreamingUtils.readTLString(stream);
     this.apiId         = StreamingUtils.readInt(stream);
     this.appName       = StreamingUtils.readTLString(stream);
     this.appVersion    = StreamingUtils.readTLString(stream);
     this.dateCreated   = StreamingUtils.readInt(stream);
     this.dateActive    = StreamingUtils.readInt(stream);
     this.ip            = StreamingUtils.readTLString(stream);
     this.country       = StreamingUtils.readTLString(stream);
     this.region        = StreamingUtils.readTLString(stream);
 }
Пример #25
0
        public override void deserializeBody(InputStream stream, TLContext context)
        {
            this.requestId = StreamingUtils.readLong(stream);
            this.now       = StreamingUtils.readInt(stream);
            int num = StreamingUtils.readInt(stream);

            this.salts.clear();
            int num2 = 0;

            while (true)
            {
                if (num2 >= num)
                {
                    break;
                }
                MTFutureSalt t = new MTFutureSalt();
                t.deserializeBody(stream, context);
                this.salts.add(t);
                num2++;
            }
        }
Пример #26
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.flags = StreamingUtils.readInt(stream);
     base.id    = StreamingUtils.readInt(stream);
     if ((this.flags & 0x2000) != 0)
     {
         this.accessHash = StreamingUtils.readLong(stream);
     }
     this.title = StreamingUtils.readTLString(stream);
     if ((this.flags & 0x40) != 0)
     {
         this.username = StreamingUtils.readTLString(stream);
     }
     this.photo   = StreamingUtils.readTLObject(stream, context);
     this.date    = StreamingUtils.readInt(stream);
     this.version = StreamingUtils.readInt(stream);
     if ((this.flags & 0x200) != 0)
     {
         this.restrictionReason = StreamingUtils.readTLString(stream);
     }
 }
Пример #27
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.msg_id = Long.valueOf(StreamingUtils.readLong(stream));
     this.seq_no = StreamingUtils.readInt(stream);
     this.bytes  = StreamingUtils.readInt(stream);
 }
Пример #28
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.dcId       = StreamingUtils.readInt(stream);
     this.id         = StreamingUtils.readLong(stream);
     this.accessHash = StreamingUtils.readLong(stream);
 }
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.exchangeId     = StreamingUtils.readLong(stream);
     this.g_a            = StreamingUtils.readTLBytes(stream, context);
     this.KeyFingerprint = StreamingUtils.readLong(stream);
 }
Пример #30
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.session_id = Long.valueOf(StreamingUtils.readLong(stream));
 }