Inheritance: TLObject, IList
Exemplo n.º 1
0
 public override void DeserializeBody(BinaryReader br)
 {
     title = StringUtil.Deserialize(br);
     users = (TLVector <int>)ObjectUtils.DeserializeVector <int>(br);
 }
Exemplo n.º 2
0
 public override void DeserializeBody(BinaryReader br)
 {
     Flags = br.ReadInt32();
     ExcludeNewMessages = (Flags & 2) != 0;
     Ranges             = (TLVector <TLMessageRange>)ObjectUtils.DeserializeVector <TLMessageRange>(br);
 }
Exemplo n.º 3
0
 public override void DeserializeBody(BinaryReader br)
 {
     Rows = (TLVector <TLKeyboardButtonRow>)ObjectUtils.DeserializeVector <TLKeyboardButtonRow>(br);
 }
Exemplo n.º 4
0
 public override void DeserializeBody(BinaryReader br)
 {
     this.DcOptions = (TLVector <TLDcOption>)ObjectUtils.DeserializeVector <TLDcOption>(br);
 }
Exemplo n.º 5
0
 public override void DeserializeBody(BinaryReader br)
 {
     this.Key   = (TLAbsPrivacyKey)ObjectUtils.DeserializeObject(br);
     this.Rules = (TLVector <TLAbsPrivacyRule>)ObjectUtils.DeserializeVector <TLAbsPrivacyRule>(br);
 }
 public override void DeserializeBody(BinaryReader br)
 {
     Title    = (TLAbsRichText)ObjectUtils.DeserializeObject(br);
     Articles = (TLVector <TLPageRelatedArticle>)ObjectUtils.DeserializeVector <TLPageRelatedArticle>(br);
 }
Exemplo n.º 7
0
 public override void DeserializeBody(BinaryReader br)
 {
     Cells = (TLVector <TLPageTableCell>)ObjectUtils.DeserializeVector <TLPageTableCell>(br);
 }
Exemplo n.º 8
0
 public override void DeserializeBody(BinaryReader br)
 {
     Category = (TLAbsTopPeerCategory)ObjectUtils.DeserializeObject(br);
     Count    = br.ReadInt32();
     Peers    = (TLVector <TLTopPeer>)ObjectUtils.DeserializeVector <TLTopPeer>(br);
 }
Exemplo n.º 9
0
 public override void DeserializeBody(BinaryReader br)
 {
     flags = br.ReadInt32();
     exclude_new_messages = (flags & 2) != 0;
     ranges = (TLVector <TLMessageRange>)ObjectUtils.DeserializeVector <TLMessageRange>(br);
 }
Exemplo n.º 10
0
 public override void DeserializeBody(BinaryReader br)
 {
     Items = (TLVector <TLAbsPageListOrderedItem>)ObjectUtils.DeserializeVector <TLAbsPageListOrderedItem>(br);
 }
Exemplo n.º 11
0
 public override void DeserializeBody(BinaryReader br)
 {
     Types = (TLVector <TLAbsSecureValueType>)ObjectUtils.DeserializeVector <TLAbsSecureValueType>(br);
 }
Exemplo n.º 12
0
 public override void DeserializeBody(BinaryReader br)
 {
     Peers = (TLVector <TLPeerLocated>)ObjectUtils.DeserializeVector <TLPeerLocated>(br);
 }
Exemplo n.º 13
0
 public override void DeserializeBody(BinaryReader br)
 {
     Blocks    = (TLVector <TLAbsPageBlock>)ObjectUtils.DeserializeVector <TLAbsPageBlock>(br);
     Photos    = (TLVector <TLAbsPhoto>)ObjectUtils.DeserializeVector <TLAbsPhoto>(br);
     Documents = (TLVector <TLAbsDocument>)ObjectUtils.DeserializeVector <TLAbsDocument>(br);
 }
Exemplo n.º 14
0
 public override void DeserializeBody(BinaryReader br)
 {
     dc_options = (TLVector <TLAbsDcOption>)ObjectUtils.DeserializeVector <TLAbsDcOption>(br);
     Type       = TLAbsUpdateTypes.TLUpdateDcOptions;
 }
Exemplo n.º 15
0
 public override void DeserializeBody(BinaryReader br)
 {
     texts = (TLVector <TLAbsRichText>)ObjectUtils.DeserializeVector <TLAbsRichText>(br);
     Type  = TLAbsRichTextTypes.TLTextConcat;
 }
Exemplo n.º 16
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;
            FromScheduled = (Flags & 262144) != 0;
            Legacy        = (Flags & 524288) != 0;
            EditHide      = (Flags & 2097152) != 0;
            Id            = br.ReadInt32();
            if ((Flags & 256) != 0)
            {
                FromId = br.ReadInt32();
            }
            else
            {
                FromId = null;
            }

            ToId = (TLAbsPeer)ObjectUtils.DeserializeObject(br);
            if ((Flags & 4) != 0)
            {
                FwdFrom = (TLMessageFwdHeader)ObjectUtils.DeserializeObject(br);
            }
            else
            {
                FwdFrom = null;
            }

            if ((Flags & 2048) != 0)
            {
                ViaBotId = br.ReadInt32();
            }
            else
            {
                ViaBotId = null;
            }

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

            Date    = br.ReadInt32();
            Message = StringUtil.Deserialize(br);
            if ((Flags & 512) != 0)
            {
                Media = (TLAbsMessageMedia)ObjectUtils.DeserializeObject(br);
            }
            else
            {
                Media = null;
            }

            if ((Flags & 64) != 0)
            {
                ReplyMarkup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br);
            }
            else
            {
                ReplyMarkup = null;
            }

            if ((Flags & 128) != 0)
            {
                Entities = (TLVector <TLAbsMessageEntity>)ObjectUtils.DeserializeVector <TLAbsMessageEntity>(br);
            }
            else
            {
                Entities = null;
            }

            if ((Flags & 1024) != 0)
            {
                Views = br.ReadInt32();
            }
            else
            {
                Views = null;
            }

            if ((Flags & 32768) != 0)
            {
                EditDate = br.ReadInt32();
            }
            else
            {
                EditDate = null;
            }

            if ((Flags & 65536) != 0)
            {
                PostAuthor = StringUtil.Deserialize(br);
            }
            else
            {
                PostAuthor = null;
            }

            if ((Flags & 131072) != 0)
            {
                GroupedId = br.ReadInt64();
            }
            else
            {
                GroupedId = null;
            }

            if ((Flags & 4194304) != 0)
            {
                RestrictionReason = (TLVector <TLRestrictionReason>)ObjectUtils.DeserializeVector <TLRestrictionReason>(br);
            }
            else
            {
                RestrictionReason = null;
            }
        }
Exemplo n.º 17
0
 public override void DeserializeBody(BinaryReader br)
 {
     key   = (TLAbsPrivacyKey)ObjectUtils.DeserializeObject(br);
     rules = (TLVector <TLAbsPrivacyRule>)ObjectUtils.DeserializeVector <TLAbsPrivacyRule>(br);
     Type  = TLAbsUpdateTypes.TLUpdatePrivacy;
 }
Exemplo n.º 18
0
 public override void DeserializeBody(BinaryReader br)
 {
     id     = StringUtil.Deserialize(br);
     title  = StringUtil.Deserialize(br);
     prices = (TLVector <TLLabeledPrice>)ObjectUtils.DeserializeVector <TLLabeledPrice>(br);
 }