// <auto-generated/>

namespace MyTelegram.Schema;


[TlObject(0x6643b654)]
public sealed class TClientDHInnerData : IObject
{
    public uint ConstructorId => 0x6643b654;
    public byte[] Nonce { get; set; }
    public byte[] ServerNonce { get; set; }
    public long RetryId { get; set; }
    public byte[] GB { get; set; }

    public void ComputeFlag()
    {

    }

    public void Serialize(IBufferWriter<byte> writer)
    {
        ComputeFlag();
        writer.Write(ConstructorId);
        writer.WriteRawBytes(Nonce);
        writer.WriteRawBytes(ServerNonce);
        writer.Write(RetryId);
        writer.Write(GB);
    }

    public void Deserialize(ref ReadOnlyMemory<byte> buffer)
    {
        Nonce = buffer.ReadInt128();
        ServerNonce = buffer.ReadInt128();
        RetryId = buffer.ReadInt64();
        GB = buffer.ReadBytes();
    }
}