Exemple #1
0
        public virtual TLBool deserializeResponse(InputStream stream, TLContext context)
        {
            TLObject obj2 = StreamingUtils.readTLObject(stream, context);

            if (obj2 == null)
            {
                Throwable.__ <suppressFillInStackTrace>();
                throw new IOException("Unable to parse response");
            }
            if (obj2 is TLBool)
            {
                return((TLBool)obj2);
            }
            Throwable.__ <suppressFillInStackTrace>();
            throw new IOException(new StringBuilder().append("Incorrect response type. Expected org.telegram.tl.TLBool, got: ").append(Object.instancehelper_getClass(obj2).getCanonicalName()).toString());
        }
Exemple #2
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);
     }
 }
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.flags = StreamingUtils.readInt(stream);
     this.id    = StreamingUtils.readTLString(stream);
     this.type  = StreamingUtils.readTLString(stream);
     if ((this.flags & 2) != 0)
     {
         this.title = StreamingUtils.readTLString(stream);
     }
     if ((this.flags & 4) != 0)
     {
         this.description = StreamingUtils.readTLString(stream);
     }
     this.document    = StreamingUtils.readTLObject(stream, context);
     this.sendMessage = StreamingUtils.readTLObject(stream, context);
 }
Exemple #4
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.flags    = StreamingUtils.readInt(stream);
     this.id       = StreamingUtils.readInt(stream);
     this.pts      = StreamingUtils.readInt(stream);
     this.ptsCount = StreamingUtils.readInt(stream);
     this.date     = StreamingUtils.readInt(stream);
     if ((this.flags & 0x200) != 0)
     {
         this.media = StreamingUtils.readTLObject(stream, context);
     }
     if ((this.flags & 0x80) != 0)
     {
         this.entities = StreamingUtils.readTLVector(stream, context);
     }
 }
Exemple #5
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.flags = StreamingUtils.readInt(stream);
     this.id    = StreamingUtils.readInt(stream);
     if ((this.flags & 0x100) != 0)
     {
         this.fromId = StreamingUtils.readInt(stream);
     }
     this.toId = StreamingUtils.readTLObject(stream, context);
     if ((this.flags & 8) != 0)
     {
         this.replyToMessageId = StreamingUtils.readInt(stream);
     }
     this.date   = StreamingUtils.readInt(stream);
     this.action = StreamingUtils.readTLObject(stream, context);
 }
Exemple #6
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.flags           = StreamingUtils.readInt(stream);
     this.peer            = StreamingUtils.readTLObject(stream, context);
     this.topMessage      = StreamingUtils.readInt(stream);
     this.readInboxMaxId  = StreamingUtils.readInt(stream);
     this.readOutboxMaxId = StreamingUtils.readInt(stream);
     this.unreadCount     = StreamingUtils.readInt(stream);
     this.notifySettings  = StreamingUtils.readTLObject(stream, context);
     if ((this.flags & 1) != 0)
     {
         this.pts = StreamingUtils.readInt(stream);
     }
     if ((this.flags & 2) != 0)
     {
         this.draft = StreamingUtils.readTLObject(stream, context);
     }
 }
Exemple #7
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.flags = StreamingUtils.readInt(stream);
     this.id    = StreamingUtils.readInt(stream);
     if ((this.flags & 0x100) != 0)
     {
         this.fromId = StreamingUtils.readInt(stream);
     }
     this.toId = StreamingUtils.readTLObject(stream, context);
     if ((this.flags & 4) != 0)
     {
         this.fwdFrom = StreamingUtils.readTLObject(stream, context);
     }
     if ((this.flags & 0x800) != 0)
     {
         this.viaBotId = StreamingUtils.readInt(stream);
     }
     if ((this.flags & 8) != 0)
     {
         this.replyToMsgId = StreamingUtils.readInt(stream);
     }
     this.date    = StreamingUtils.readInt(stream);
     this.message = StreamingUtils.readTLString(stream);
     if ((this.flags & 0x200) != 0)
     {
         this.media = StreamingUtils.readTLObject(stream, context);
     }
     if ((this.flags & 0x40) != 0)
     {
         this.replyMarkup = StreamingUtils.readTLObject(stream, context);
     }
     if ((this.flags & 0x80) != 0)
     {
         this.entities = StreamingUtils.readTLVector(stream, context);
     }
     if ((this.flags & 0x400) != 0)
     {
         this.views = StreamingUtils.readInt(stream);
     }
     if ((this.flags & 0x8000) != 0)
     {
         this.editDate = StreamingUtils.readInt(stream);
     }
 }
Exemple #8
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.flags = StreamingUtils.readInt(stream);
     this.user  = StreamingUtils.readTLObject(stream, context);
     if ((this.flags & 2) != 0)
     {
         this.about = StreamingUtils.readTLString(stream);
     }
     this.link = StreamingUtils.readTLObject(stream, context);
     if ((this.flags & 4) != 0)
     {
         this.profilePhoto = StreamingUtils.readTLObject(stream, context);
     }
     this.notifySettings = StreamingUtils.readTLObject(stream, context);
     if ((this.flags & 8) != 0)
     {
         this.botInfo = StreamingUtils.readTLObject(stream, context);
     }
     this.commonChatsCount = StreamingUtils.readInt(stream);
 }
Exemple #9
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);
     }
 }
Exemple #10
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.flags = StreamingUtils.readInt(stream);
     this.id    = StreamingUtils.readTLString(stream);
     this.type  = StreamingUtils.readTLString(stream);
     if ((this.flags & 2) != 0)
     {
         this.title = StreamingUtils.readTLString(stream);
     }
     if ((this.flags & 4) != 0)
     {
         this.description = StreamingUtils.readTLString(stream);
     }
     if ((this.flags & 8) != 0)
     {
         this.url = StreamingUtils.readTLString(stream);
     }
     if ((this.flags & 0x10) != 0)
     {
         this.thumbUrl = StreamingUtils.readTLString(stream);
     }
     if ((this.flags & 0x20) != 0)
     {
         this.contentUrl  = StreamingUtils.readTLString(stream);
         this.contentType = StreamingUtils.readTLString(stream);
     }
     if ((this.flags & 0x40) != 0)
     {
         this.w = StreamingUtils.readInt(stream);
         this.h = StreamingUtils.readInt(stream);
     }
     if ((this.flags & 0x80) != 0)
     {
         this.duration = StreamingUtils.readInt(stream);
     }
     this.sendMessage = StreamingUtils.readTLObject(stream, context);
 }
Exemple #11
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.type  = StreamingUtils.readTLObject(stream, context);
     this.mtime = StreamingUtils.readInt(stream);
     this.bytes = StreamingUtils.readTLBytes(stream, context);
 }
Exemple #12
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.url      = StreamingUtils.readTLString(stream);
     this.photo    = StreamingUtils.readTLObject(stream, context);
     this.document = StreamingUtils.readTLObject(stream, context);
 }
Exemple #13
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.photo = StreamingUtils.readTLObject(stream, context);
     this.users = StreamingUtils.readTLVector(stream, context);
 }
Exemple #14
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     base.date = StreamingUtils.readInt(stream);
     base.file = StreamingUtils.readTLObject(stream, context);
 }
Exemple #15
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);
 }
Exemple #16
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.message  = StreamingUtils.readTLObject(stream, context);
     this.pts      = StreamingUtils.readInt(stream);
     this.ptsCount = StreamingUtils.readInt(stream);
 }
Exemple #17
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.currentPasswordHash = StreamingUtils.readTLBytes(stream, context);
     this.newSettings         = StreamingUtils.readTLObject(stream, context);
 }
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     base.randomId = StreamingUtils.readLong(stream);
     this.action   = StreamingUtils.readTLObject(stream, context);
 }
Exemple #19
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.userId      = StreamingUtils.readInt(stream);
     this.myLink      = StreamingUtils.readTLObject(stream, context);
     this.foreignLink = StreamingUtils.readTLObject(stream, context);
 }
Exemple #20
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.peer    = StreamingUtils.readTLObject(stream, context);
     this.maxDate = StreamingUtils.readInt(stream);
 }
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.peer           = StreamingUtils.readTLObject(stream, context);
     this.notifySettings = StreamingUtils.readTLObject(stream, context);
 }
Exemple #22
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.phoneNumber = StreamingUtils.readTLString(stream);
     this.user        = StreamingUtils.readTLObject(stream, context);
 }
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.userId   = StreamingUtils.readTLObject(stream, context);
     this.randomId = StreamingUtils.readInt(stream);
     this.gA       = StreamingUtils.readTLBytes(stream, context);
 }
Exemple #24
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.photo_small = StreamingUtils.readTLObject(stream, context);
     this.photo_big   = StreamingUtils.readTLObject(stream, context);
 }
Exemple #25
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.id          = StreamingUtils.readTLString(stream);
     this.shortName   = StreamingUtils.readTLString(stream);
     this.sendMessage = StreamingUtils.readTLObject(stream, context);
 }
Exemple #26
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.id      = StreamingUtils.readTLObject(stream, context);
     this.caption = StreamingUtils.readTLString(stream);
 }
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.peer           = StreamingUtils.readTLObject(stream, context);
     this.gB             = StreamingUtils.readTLBytes(stream, context);
     this.keyFingerprint = StreamingUtils.readLong(stream);
 }
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.key = StreamingUtils.readTLObject(stream, context);
 }
Exemple #29
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.chatId = StreamingUtils.readInt(stream);
     this.userId = StreamingUtils.readInt(stream);
     this.action = StreamingUtils.readTLObject(stream, context);
 }