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

namespace MyTelegram.Schema.E2e;


[TlObject(0x68EA66D5)]
public sealed class TPersonalName : IPersonal
{
    public uint ConstructorId => 0x68EA66D5;
    public string FirstName { get; set; }
    public string LastName { get; set; }

    public void ComputeFlag()
    {

    }

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

    public void Deserialize(ref ReadOnlyMemory<byte> buffer)
    {
        FirstName = buffer.ReadString();
        LastName = buffer.ReadString();
    }
}