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

namespace MyTelegram.Schema.Account;

///<summary>
/// Get private info associated to the password info (recovery email, telegram <a href="https://corefork.telegram.org/passport">passport</a> info &amp; so on)
/// <para>Possible errors</para>
/// Code Type Description
/// 400 PASSWORD_HASH_INVALID The provided password hash is invalid.
/// See <a href="https://corefork.telegram.org/method/account.getPasswordSettings" />
///</summary>
[TlObject(0x9cd4eaf9)]
public sealed class RequestGetPasswordSettings : IRequest<MyTelegram.Schema.Account.IPasswordSettings>
{
    public uint ConstructorId => 0x9cd4eaf9;
    ///<summary>
    /// The password (see <a href="https://corefork.telegram.org/api/srp">SRP</a>)
    /// See <a href="https://corefork.telegram.org/type/InputCheckPasswordSRP" />
    ///</summary>
    public MyTelegram.Schema.IInputCheckPasswordSRP Password { get; set; }

    public void ComputeFlag()
    {

    }

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

    public void Deserialize(ref ReadOnlyMemory<byte> buffer)
    {
        Password = buffer.Read<MyTelegram.Schema.IInputCheckPasswordSRP>();
    }
}
