TLSharp/TeleSharp.TL/TL/TLPagePart.cs

43 lines
1.1 KiB
C#
Raw Normal View History

using System.IO;
namespace TeleSharp.TL
{
2017-11-09 10:21:33 +01:00
[TLObject(-1908433218)]
public class TLPagePart : TLAbsPage
{
public override int Constructor
{
get
{
2017-11-09 10:21:33 +01:00
return -1908433218;
}
}
public TLVector<TLAbsPageBlock> blocks { get; set; }
public TLVector<TLAbsPhoto> photos { get; set; }
2017-11-09 10:21:33 +01:00
public TLVector<TLAbsDocument> documents { get; set; }
public void ComputeFlags()
{
}
public override void DeserializeBody(BinaryReader br)
{
blocks = (TLVector<TLAbsPageBlock>)ObjectUtils.DeserializeVector<TLAbsPageBlock>(br);
photos = (TLVector<TLAbsPhoto>)ObjectUtils.DeserializeVector<TLAbsPhoto>(br);
2017-11-09 10:21:33 +01:00
documents = (TLVector<TLAbsDocument>)ObjectUtils.DeserializeVector<TLAbsDocument>(br);
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
ObjectUtils.SerializeObject(blocks, bw);
ObjectUtils.SerializeObject(photos, bw);
2017-11-09 10:21:33 +01:00
ObjectUtils.SerializeObject(documents, bw);
}
}
}