// <auto-generated/>

namespace MyTelegram.Schema;


[TlObject(0x05162463)]
public sealed class TResPQ : IResPQ
{
    public uint ConstructorId => 0x05162463;
    public byte[] Nonce { get; set; }
    public byte[] ServerNonce { get; set; }
    public byte[] Pq { get; set; }
    public TVector<long> ServerPublicKeyFingerprints { get; set; }

    public void ComputeFlag()
    {

    }

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

    public void Deserialize(ref ReadOnlyMemory<byte> buffer)
    {
        Nonce = buffer.ReadInt128();
        ServerNonce = buffer.ReadInt128();
        Pq = buffer.ReadBytes();
        ServerPublicKeyFingerprints = buffer.Read<TVector<long>>();
    }
}