// <auto-generated/>

namespace MyTelegram.Schema;

[TlObject(0xf5045f1f)]
public sealed class RequestSetClientDHParams : IRequest<MyTelegram.Schema.ISetClientDHParamsAnswer>
{
    public uint ConstructorId => 0xf5045f1f;
    public byte[] Nonce { get; set; }
    public byte[] ServerNonce { get; set; }
    public byte[] EncryptedData { get; set; }

    public void ComputeFlag()
    {

    }

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

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