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

namespace MyTelegram.Schema;

///<summary>
/// Empty constructor, non-existent user.
/// See <a href="https://corefork.telegram.org/constructor/userEmpty" />
///</summary>
[TlObject(0xd3bc4b7a)]
public sealed class TUserEmpty : IUser,IEmpty
{
    public uint ConstructorId => 0xd3bc4b7a;
    ///<summary>
    /// User identifier 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();
    }
}