// <auto-generated/>

namespace MyTelegram.Schema;


[TlObject(0x75a3f765)]
public sealed class TBindAuthKeyInner : IObject
{
    public uint ConstructorId => 0x75a3f765;
    public long Nonce { get; set; }
    public long TempAuthKeyId { get; set; }
    public long PermAuthKeyId { get; set; }
    public long TempSessionId { get; set; }
    public int ExpiresAt { get; set; }

    public void ComputeFlag()
    {

    }

    public void Serialize(IBufferWriter<byte> writer)
    {
        ComputeFlag();
        writer.Write(ConstructorId);
        writer.Write(Nonce);
        writer.Write(TempAuthKeyId);
        writer.Write(PermAuthKeyId);
        writer.Write(TempSessionId);
        writer.Write(ExpiresAt);
    }

    public void Deserialize(ref ReadOnlyMemory<byte> buffer)
    {
        Nonce = buffer.ReadInt64();
        TempAuthKeyId = buffer.ReadInt64();
        PermAuthKeyId = buffer.ReadInt64();
        TempSessionId = buffer.ReadInt64();
        ExpiresAt = buffer.ReadInt32();
    }
}