Example #1
0
 public override void DeserializeBody(BinaryReader br)
 {
     url      = StringUtil.Deserialize(br);
     photo    = (TLAbsPhoto)ObjectUtils.DeserializeObject(br);
     document = (TLAbsDocument)ObjectUtils.DeserializeObject(br);
     Type     = TLAbsFoundGifTypes.TLFoundGifCached;
 }
Example #2
0
 public override void DeserializeBody(BinaryReader br)
 {
     flags       = br.ReadInt32();
     id          = br.ReadInt64();
     access_hash = br.ReadInt64();
     short_name  = StringUtil.Deserialize(br);
     title       = StringUtil.Deserialize(br);
     description = StringUtil.Deserialize(br);
     photo       = (TLAbsPhoto)ObjectUtils.DeserializeObject(br);
     if ((flags & 1) != 0)
     {
         document = (TLAbsDocument)ObjectUtils.DeserializeObject(br);
     }
     else
     {
         document = null;
     }
 }
Example #3
0
 public override void DeserializeBody(BinaryReader br)
 {
     Flags       = br.ReadInt32();
     Id          = br.ReadInt64();
     AccessHash  = br.ReadInt64();
     ShortName   = StringUtil.Deserialize(br);
     Title       = StringUtil.Deserialize(br);
     Description = StringUtil.Deserialize(br);
     Photo       = (TLAbsPhoto)ObjectUtils.DeserializeObject(br);
     if ((Flags & 1) != 0)
     {
         Document = (TLAbsDocument)ObjectUtils.DeserializeObject(br);
     }
     else
     {
         Document = null;
     }
 }
Example #4
0
        public override void DeserializeBody(BinaryReader br)
        {
            flags       = br.ReadInt32();
            id          = br.ReadInt64();
            url         = StringUtil.Deserialize(br);
            display_url = StringUtil.Deserialize(br);
            if ((flags & 1) != 0)
            {
                type = StringUtil.Deserialize(br);
            }
            else
            {
                type = null;
            }

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

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

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

            if ((flags & 16) != 0)
            {
                photo = (TLAbsPhoto)ObjectUtils.DeserializeObject(br);
            }
            else
            {
                photo = null;
            }

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

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

            if ((flags & 64) != 0)
            {
                embed_width = br.ReadInt32();
            }
            else
            {
                embed_width = null;
            }

            if ((flags & 64) != 0)
            {
                embed_height = br.ReadInt32();
            }
            else
            {
                embed_height = null;
            }

            if ((flags & 128) != 0)
            {
                duration = br.ReadInt32();
            }
            else
            {
                duration = null;
            }

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

            if ((flags & 512) != 0)
            {
                document = (TLAbsDocument)ObjectUtils.DeserializeObject(br);
            }
            else
            {
                document = null;
            }
        }
Example #5
0
 public override void DeserializeBody(BinaryReader br)
 {
     @set  = (TLAbsStickerSet)ObjectUtils.DeserializeObject(br);
     cover = (TLAbsDocument)ObjectUtils.DeserializeObject(br);
     Type  = TLAbsStickerSetCoveredTypes.TLStickerSetCovered;
 }
Example #6
0
 public override void DeserializeBody(BinaryReader br)
 {
     Set   = (TLStickerSet)ObjectUtils.DeserializeObject(br);
     Cover = (TLAbsDocument)ObjectUtils.DeserializeObject(br);
 }
Example #7
0
 public override void DeserializeBody(BinaryReader br)
 {
     Url      = StringUtil.Deserialize(br);
     Photo    = (TLAbsPhoto)ObjectUtils.DeserializeObject(br);
     Document = (TLAbsDocument)ObjectUtils.DeserializeObject(br);
 }