Exemplo n.º 1
0
        public override void DeserializeBody(BinaryReader br)
        {
            this.Flags       = br.ReadInt32();
            this.Out         = (this.Flags & 2) != 0;
            this.Mentioned   = (this.Flags & 16) != 0;
            this.MediaUnread = (this.Flags & 32) != 0;
            this.Silent      = (this.Flags & 8192) != 0;
            this.Post        = (this.Flags & 16384) != 0;
            this.Id          = br.ReadInt32();
            if ((this.Flags & 256) != 0)
            {
                this.FromId = br.ReadInt32();
            }
            else
            {
                this.FromId = null;
            }

            this.ToId = (TLAbsPeer)ObjectUtils.DeserializeObject(br);
            if ((this.Flags & 8) != 0)
            {
                this.ReplyToMsgId = br.ReadInt32();
            }
            else
            {
                this.ReplyToMsgId = null;
            }

            this.Date   = br.ReadInt32();
            this.Action = (TLAbsMessageAction)ObjectUtils.DeserializeObject(br);
        }
Exemplo n.º 2
0
        public override void DeserializeBody(BinaryReader br)
        {
            Flags       = br.ReadInt32();
            Out         = (Flags & 2) != 0;
            Mentioned   = (Flags & 16) != 0;
            MediaUnread = (Flags & 32) != 0;
            Silent      = (Flags & 8192) != 0;
            Post        = (Flags & 16384) != 0;
            Id          = br.ReadInt32();
            if ((Flags & 256) != 0)
            {
                FromId = br.ReadInt32();
            }
            else
            {
                FromId = null;
            }

            ToId = (TLAbsPeer)ObjectUtils.DeserializeObject(br);
            if ((Flags & 8) != 0)
            {
                ReplyToMsgId = br.ReadInt32();
            }
            else
            {
                ReplyToMsgId = null;
            }

            Date   = br.ReadInt32();
            Action = (TLAbsMessageAction)ObjectUtils.DeserializeObject(br);
        }
Exemplo n.º 3
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);
        }