コード例 #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);
 }
コード例 #2
0
 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
ファイル: ClientDhInner.cs プロジェクト: hnjm/tgsharp
 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
ファイル: MTMessageDetailedInfo.cs プロジェクト: hnjm/tgsharp
 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
ファイル: TLChannelForbidden.cs プロジェクト: hnjm/tgsharp
 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);
 }
コード例 #12
0
 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
ファイル: TLEncryptedFile.cs プロジェクト: hnjm/tgsharp
 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);
 }
コード例 #19
0
 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
ファイル: TLUser.cs プロジェクト: hnjm/tgsharp
 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
ファイル: TLAuthorization.cs プロジェクト: hnjm/tgsharp
 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
ファイル: MTFutureSalts.cs プロジェクト: hnjm/tgsharp
        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
ファイル: MTRpcAnswerDropped.cs プロジェクト: hnjm/tgsharp
 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);
 }
コード例 #29
0
 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
ファイル: MTDestroySession.cs プロジェクト: hnjm/tgsharp
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.session_id = Long.valueOf(StreamingUtils.readLong(stream));
 }