// <auto-generated/>
// ReSharper disable All

namespace MyTelegram.Schema.Auth;

///<summary>
/// Delete all temporary authorization keys <strong>except for</strong> the ones specified
/// See <a href="https://corefork.telegram.org/method/auth.dropTempAuthKeys" />
///</summary>
[TlObject(0x8e48a188)]
public sealed class RequestDropTempAuthKeys : IRequest<IBool>
{
    public uint ConstructorId => 0x8e48a188;
    ///<summary>
    /// The auth keys that <strong>shouldn't</strong> be dropped.
    ///</summary>
    public TVector<long> ExceptAuthKeys { get; set; }

    public void ComputeFlag()
    {

    }

    public void Serialize(IBufferWriter<byte> writer)
    {
        ComputeFlag();
        writer.Write(ConstructorId);
        writer.Write(ExceptAuthKeys);
    }

    public void Deserialize(ref ReadOnlyMemory<byte> buffer)
    {
        ExceptAuthKeys = buffer.Read<TVector<long>>();
    }
}
