// <auto-generated/>
// ReSharper disable All

namespace MyTelegram.Schema;

///<summary>
/// Page header
/// See <a href="https://corefork.telegram.org/constructor/pageBlockHeader" />
///</summary>
[TlObject(0xbfd064ec)]
public sealed class TPageBlockHeader : IPageBlock
{
    public uint ConstructorId => 0xbfd064ec;
    ///<summary>
    /// Contents
    /// See <a href="https://corefork.telegram.org/type/RichText" />
    ///</summary>
    public MyTelegram.Schema.IRichText Text { get; set; }

    public void ComputeFlag()
    {

    }

    public void Serialize(IBufferWriter<byte> writer)
    {
        ComputeFlag();
        writer.Write(ConstructorId);
        writer.Write(Text);
    }

    public void Deserialize(ref ReadOnlyMemory<byte> buffer)
    {
        Text = buffer.Read<MyTelegram.Schema.IRichText>();
    }
}