TLSharp/TeleSharp.TL/TL/TLPagePart.cs
Andrzej Gołaszewski ca3a71e39a update to layer 71
code formatting
2017-12-20 12:06:31 +01:00

42 lines
1.1 KiB
C#

using System.IO;
namespace TeleSharp.TL
{
[TLObject(-1908433218)]
public class TLPagePart : TLAbsPage
{
public TLVector<TLAbsPageBlock> Blocks { get; set; }
public override int Constructor
{
get
{
return -1908433218;
}
}
public TLVector<TLAbsDocument> Documents { get; set; }
public TLVector<TLAbsPhoto> Photos { 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);
Documents = (TLVector<TLAbsDocument>)ObjectUtils.DeserializeVector<TLAbsDocument>(br);
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
ObjectUtils.SerializeObject(Blocks, bw);
ObjectUtils.SerializeObject(Photos, bw);
ObjectUtils.SerializeObject(Documents, bw);
}
}
}