2017-07-20 04:07:24 +02:00
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.IO;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using TeleSharp.TL;
|
|
|
|
|
namespace TeleSharp.TL
|
|
|
|
|
{
|
|
|
|
|
[TLObject(690781161)]
|
|
|
|
|
public class TLPageBlockEmbedPost : TLAbsPageBlock
|
|
|
|
|
{
|
|
|
|
|
public override int Constructor
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return 690781161;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2017-11-09 11:35:15 +01:00
|
|
|
public string Url { get; set; }
|
|
|
|
|
public long WebpageId { get; set; }
|
|
|
|
|
public long AuthorPhotoId { get; set; }
|
|
|
|
|
public string Author { get; set; }
|
|
|
|
|
public int Date { get; set; }
|
|
|
|
|
public TLVector<TLAbsPageBlock> Blocks { get; set; }
|
|
|
|
|
public TLAbsRichText Caption { get; set; }
|
2017-07-20 04:07:24 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
public void ComputeFlags()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void DeserializeBody(BinaryReader br)
|
|
|
|
|
{
|
2017-11-09 11:35:15 +01:00
|
|
|
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 = (TLAbsRichText)ObjectUtils.DeserializeObject(br);
|
2017-07-20 04:07:24 +02:00
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void SerializeBody(BinaryWriter bw)
|
|
|
|
|
{
|
|
|
|
|
bw.Write(Constructor);
|
2017-11-09 11:35:15 +01:00
|
|
|
StringUtil.Serialize(Url, bw);
|
|
|
|
|
bw.Write(WebpageId);
|
|
|
|
|
bw.Write(AuthorPhotoId);
|
|
|
|
|
StringUtil.Serialize(Author, bw);
|
|
|
|
|
bw.Write(Date);
|
|
|
|
|
ObjectUtils.SerializeObject(Blocks, bw);
|
|
|
|
|
ObjectUtils.SerializeObject(Caption, bw);
|
2017-07-20 04:07:24 +02:00
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|