Exemple #1
0
 public override void DeserializeBody(BinaryReader br)
 {
     Geo     = (TLAbsGeoPoint)ObjectUtils.DeserializeObject(br);
     Zoom    = br.ReadInt32();
     W       = br.ReadInt32();
     H       = br.ReadInt32();
     Caption = (TLPageCaption)ObjectUtils.DeserializeObject(br);
 }
Exemple #2
0
 public override void DeserializeBody(BinaryReader br)
 {
     Flags    = br.ReadInt32();
     Autoplay = (Flags & 1) != 0;
     Loop     = (Flags & 2) != 0;
     VideoId  = br.ReadInt64();
     Caption  = (TLPageCaption)ObjectUtils.DeserializeObject(br);
 }
Exemple #3
0
 public override void DeserializeBody(BinaryReader br)
 {
     Url           = StringUtil.Deserialize(br);
     WebpageId     = br.ReadInt64();
     AuthorPhotoId = br.ReadInt64();
     Author        = StringUtil.Deserialize(br);
     Date          = br.ReadInt32();
     Blocks        = (TLVector <TLAbsPageBlock>)ObjectUtils.DeserializeVector <TLAbsPageBlock>(br);
     Caption       = (TLPageCaption)ObjectUtils.DeserializeObject(br);
 }
Exemple #4
0
        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;
            }

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

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

            Caption = (TLPageCaption)ObjectUtils.DeserializeObject(br);
        }
Exemple #5
0
 public override void DeserializeBody(BinaryReader br)
 {
     Items   = (TLVector <TLAbsPageBlock>)ObjectUtils.DeserializeVector <TLAbsPageBlock>(br);
     Caption = (TLPageCaption)ObjectUtils.DeserializeObject(br);
 }
Exemple #6
0
 public override void DeserializeBody(BinaryReader br)
 {
     AudioId = br.ReadInt64();
     Caption = (TLPageCaption)ObjectUtils.DeserializeObject(br);
 }