Esempio n. 1
0
 public override void DeserializeBody(BinaryReader br)
 {
     Flags  = br.ReadInt32();
     Open   = (Flags & 1) != 0;
     Blocks = (TLVector <TLAbsPageBlock>)ObjectUtils.DeserializeVector <TLAbsPageBlock>(br);
     Title  = (TLAbsRichText)ObjectUtils.DeserializeObject(br);
 }
Esempio n. 2
0
 public override void DeserializeBody(BinaryReader br)
 {
     flags    = br.ReadInt32();
     autoplay = (flags & 1) != 0;
     loop     = (flags & 2) != 0;
     video_id = br.ReadInt64();
     caption  = (TLAbsRichText)ObjectUtils.DeserializeObject(br);
 }
Esempio n. 3
0
 public override void DeserializeBody(BinaryReader br)
 {
     Flags    = br.ReadInt32();
     Autoplay = (Flags & 1) != 0;
     Loop     = (Flags & 2) != 0;
     VideoId  = br.ReadInt64();
     Caption  = (TLAbsRichText)ObjectUtils.DeserializeObject(br);
 }
Esempio n. 4
0
 public override void DeserializeBody(BinaryReader br)
 {
     this.Url           = StringUtil.Deserialize(br);
     this.WebpageId     = br.ReadInt64();
     this.AuthorPhotoId = br.ReadInt64();
     this.Author        = StringUtil.Deserialize(br);
     this.Date          = br.ReadInt32();
     this.Blocks        = (TLVector <TLAbsPageBlock>)ObjectUtils.DeserializeVector <TLAbsPageBlock>(br);
     this.Caption       = (TLAbsRichText)ObjectUtils.DeserializeObject(br);
 }
Esempio n. 5
0
 public override void DeserializeBody(BinaryReader br)
 {
     url             = StringUtil.Deserialize(br);
     webpage_id      = br.ReadInt64();
     author_photo_id = br.ReadInt64();
     author          = StringUtil.Deserialize(br);
     date            = br.ReadInt32();
     blocks          = (TLVector <TLAbsPageBlock>)ObjectUtils.DeserializeVector <TLAbsPageBlock>(br);
     caption         = (TLAbsRichText)ObjectUtils.DeserializeObject(br);
 }
Esempio n. 6
0
        public override void DeserializeBody(BinaryReader br)
        {
            flags           = br.ReadInt32();
            full_width      = (flags & 1) != 0;
            allow_scrolling = (flags & 8) != 0;
            if ((flags & 2) != 0)
            {
                url = StringUtil.Deserialize(br);
            }
            else
            {
                url = null;
            }

            if ((flags & 4) != 0)
            {
                html = StringUtil.Deserialize(br);
            }
            else
            {
                html = null;
            }

            if ((flags & 16) != 0)
            {
                poster_photo_id = br.ReadInt64();
            }
            else
            {
                poster_photo_id = null;
            }

            w       = br.ReadInt32();
            h       = br.ReadInt32();
            caption = (TLAbsRichText)ObjectUtils.DeserializeObject(br);
            Type    = TLAbsPageBlockTypes.TLPageBlockEmbed;
        }
Esempio n. 7
0
        public override void DeserializeBody(BinaryReader br)
        {
            this.Flags          = br.ReadInt32();
            this.FullWidth      = (this.Flags & 1) != 0;
            this.AllowScrolling = (this.Flags & 8) != 0;
            if ((this.Flags & 2) != 0)
            {
                this.Url = StringUtil.Deserialize(br);
            }
            else
            {
                this.Url = null;
            }

            if ((this.Flags & 4) != 0)
            {
                this.Html = StringUtil.Deserialize(br);
            }
            else
            {
                this.Html = null;
            }

            if ((this.Flags & 16) != 0)
            {
                this.PosterPhotoId = br.ReadInt64();
            }
            else
            {
                this.PosterPhotoId = null;
            }

            this.W       = br.ReadInt32();
            this.H       = br.ReadInt32();
            this.Caption = (TLAbsRichText)ObjectUtils.DeserializeObject(br);
        }
        public override void DeserializeBody(BinaryReader br)
        {
            Flags          = br.ReadInt32();
            FullWidth      = (Flags & 1) != 0;
            AllowScrolling = (Flags & 8) != 0;
            if ((Flags & 2) != 0)
            {
                Url = StringUtil.Deserialize(br);
            }
            else
            {
                Url = null;
            }

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

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

            W       = br.ReadInt32();
            H       = br.ReadInt32();
            Caption = (TLAbsRichText)ObjectUtils.DeserializeObject(br);
        }
 public override void DeserializeBody(BinaryReader br)
 {
     Items   = ObjectUtils.DeserializeVector <TLAbsPageBlock>(br);
     Caption = (TLAbsRichText)ObjectUtils.DeserializeObject(br);
 }
Esempio n. 10
0
 public override void DeserializeBody(BinaryReader br)
 {
     Text    = (TLAbsRichText)ObjectUtils.DeserializeObject(br);
     Caption = (TLAbsRichText)ObjectUtils.DeserializeObject(br);
 }
Esempio n. 11
0
 public override void DeserializeBody(BinaryReader br)
 {
     items   = (TLVector <TLAbsPageBlock>)ObjectUtils.DeserializeVector <TLAbsPageBlock>(br);
     caption = (TLAbsRichText)ObjectUtils.DeserializeObject(br);
     Type    = TLAbsPageBlockTypes.TLPageBlockCollage;
 }
Esempio n. 12
0
 public override void DeserializeBody(BinaryReader br)
 {
     text = (TLAbsRichText)ObjectUtils.DeserializeObject(br);
     Type = TLAbsRichTextTypes.TLTextStrike;
 }
Esempio n. 13
0
 public override void DeserializeBody(BinaryReader br)
 {
     text    = (TLAbsRichText)ObjectUtils.DeserializeObject(br);
     caption = (TLAbsRichText)ObjectUtils.DeserializeObject(br);
     Type    = TLAbsPageBlockTypes.TLPageBlockPullquote;
 }
Esempio n. 14
0
 public override void DeserializeBody(BinaryReader br)
 {
     text = (TLAbsRichText)ObjectUtils.DeserializeObject(br);
     Type = TLAbsPageBlockTypes.TLPageBlockParagraph;
 }
Esempio n. 15
0
 public override void DeserializeBody(BinaryReader br)
 {
     PhotoId = br.ReadInt64();
     Caption = (TLAbsRichText)ObjectUtils.DeserializeObject(br);
 }
Esempio n. 16
0
 public override void DeserializeBody(BinaryReader br)
 {
     photo_id = br.ReadInt64();
     caption  = (TLAbsRichText)ObjectUtils.DeserializeObject(br);
     Type     = TLAbsPageBlockTypes.TLPageBlockPhoto;
 }
 public override void DeserializeBody(BinaryReader br)
 {
     Num  = StringUtil.Deserialize(br);
     Text = (TLAbsRichText)ObjectUtils.DeserializeObject(br);
 }