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

namespace MyTelegram.Schema;

///<summary>
/// Empty constructor, document doesn't exist.
/// See <a href="https://corefork.telegram.org/constructor/documentEmpty" />
///</summary>
[TlObject(0x36f8c871)]
public sealed class TDocumentEmpty : IDocument,IEmpty
{
    public uint ConstructorId => 0x36f8c871;
    ///<summary>
    /// Document ID or <code>0</code>
    ///</summary>
    public long Id { get; set; }

    public void ComputeFlag()
    {

    }

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

    public void Deserialize(ref ReadOnlyMemory<byte> buffer)
    {
        Id = buffer.ReadInt64();
    }
}