mirror of
https://github.com/sochix/TLSharp.git
synced 2025-12-06 08:02:00 +01:00
42 lines
1.1 KiB
C#
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);
|
|
}
|
|
}
|
|
}
|