示例#1
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.flags    = StreamingUtils.readInt(stream);
     this.id       = StreamingUtils.readInt(stream);
     this.fromId   = StreamingUtils.readInt(stream);
     this.chatId   = StreamingUtils.readInt(stream);
     this.message  = StreamingUtils.readTLString(stream);
     this.pts      = StreamingUtils.readInt(stream);
     this.ptsCount = StreamingUtils.readInt(stream);
     this.date     = StreamingUtils.readInt(stream);
     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);
     }
     if ((this.flags & 0x80) != 0)
     {
         this.entities = StreamingUtils.readTLVector(stream, context);
     }
 }
示例#2
0
 public virtual void setFwdFrom(TLMessageFwdHeader fwdFrom)
 {
     this.fwdFrom = fwdFrom;
 }