// <auto-generated/>

namespace MyTelegram.Schema;


[TlObject(0x3bcbf734)]
public sealed class TDhGenOk : ISetClientDHParamsAnswer
{
    public uint ConstructorId => 0x3bcbf734;
    public byte[] Nonce { get; set; }
    public byte[] ServerNonce { get; set; }
    public byte[] NewNonceHash1 { get; set; }

    public void ComputeFlag()
    {

    }

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

    public void Deserialize(ref ReadOnlyMemory<byte> buffer)
    {
        Nonce = buffer.ReadInt128();
        ServerNonce = buffer.ReadInt128();
        NewNonceHash1 = buffer.ReadInt128();
    }
}