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

namespace MyTelegram.Schema.Account;

///<summary>
/// Delete stored <a href="https://corefork.telegram.org/passport">Telegram Passport</a> documents, <a href="https://corefork.telegram.org/passport/encryption#encryption">for more info see the passport docs »</a>
/// See <a href="https://corefork.telegram.org/method/account.deleteSecureValue" />
///</summary>
[TlObject(0xb880bc4b)]
public sealed class RequestDeleteSecureValue : IRequest<IBool>
{
    public uint ConstructorId => 0xb880bc4b;
    ///<summary>
    /// Document types to delete
    ///</summary>
    public TVector<MyTelegram.Schema.ISecureValueType> Types { get; set; }

    public void ComputeFlag()
    {

    }

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

    public void Deserialize(ref ReadOnlyMemory<byte> buffer)
    {
        Types = buffer.Read<TVector<MyTelegram.Schema.ISecureValueType>>();
    }
}
