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

namespace MyTelegram.Schema;

///<summary>
/// Empty constructor.
/// See <a href="https://corefork.telegram.org/constructor/encryptedChatEmpty" />
///</summary>
[TlObject(0xab7ec0a0)]
public sealed class TEncryptedChatEmpty : IEncryptedChat,IEmpty
{
    public uint ConstructorId => 0xab7ec0a0;
    ///<summary>
    /// Chat ID
    ///</summary>
    public int 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.ReadInt32();
    }
}