示例#1
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.peer     = StreamingUtils.readTLObject(stream, context);
     this.maxId    = StreamingUtils.readInt(stream);
     this.pts      = StreamingUtils.readInt(stream);
     this.ptsCount = StreamingUtils.readInt(stream);
 }
示例#2
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);
 }
示例#3
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.peer         = StreamingUtils.readTLObject(stream, context);
     this.msgId        = StreamingUtils.readInt(stream);
     this.chatInstance = StreamingUtils.readLong(stream);
     if ((this.flags & 1) != 0)
     {
         this.data = StreamingUtils.readTLBytes(stream, context);
     }
     if ((this.flags & 2) != 0)
     {
         this.gameShortName = StreamingUtils.readTLString(stream);
     }
 }
示例#4
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);
     }
 }
示例#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 & 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);
     }
 }
示例#6
0
 public override void DeserializeBody(BinaryReader br)
 {
     Flags  = br.ReadInt32();
     Pinned = (Flags & 1) != 0;
     Peer   = (TLAbsPeer)ObjectUtils.DeserializeObject(br);
 }
示例#7
0
        public override void DeserializeBody(BinaryReader br)
        {
            flags = br.ReadInt32();
            @out = (flags & 2) != 0;
            mentioned = (flags & 16) != 0;
            media_unread = (flags & 32) != 0;
            silent = (flags & 8192) != 0;
            post = (flags & 16384) != 0;
            id = br.ReadInt32();
            if ((flags & 256) != 0)
            from_id = br.ReadInt32();
            else
            from_id = null;

            to_id = (TLAbsPeer)ObjectUtils.DeserializeObject(br);
            if ((flags & 8) != 0)
            reply_to_msg_id = br.ReadInt32();
            else
            reply_to_msg_id = null;

            date = br.ReadInt32();
            action = (TLAbsMessageAction)ObjectUtils.DeserializeObject(br);
        }
示例#8
0
 public virtual void setPeer(TLAbsPeer peer)
 {
     this.peer = peer;
 }
示例#9
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.peer = StreamingUtils.readTLObject(stream, context);
 }
示例#10
0
 public override void DeserializeBody(BinaryReader br)
 {
     peer = (TLAbsPeer)ObjectUtils.DeserializeObject(br);
 }
示例#11
0
 public override void DeserializeBody(BinaryReader br)
 {
     Peer = (TLAbsPeer)ObjectUtils.DeserializeObject(br);
 }
示例#12
0
 public virtual void setToId(TLAbsPeer toId)
 {
     this.toId = toId;
 }