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

namespace MyTelegram.Schema.Account;

///<summary>
/// You recently requested a password reset that was canceled, please wait until the specified date before requesting another reset.
/// See <a href="https://corefork.telegram.org/constructor/account.resetPasswordFailedWait" />
///</summary>
[TlObject(0xe3779861)]
public sealed class TResetPasswordFailedWait : IResetPasswordResult
{
    public uint ConstructorId => 0xe3779861;
    ///<summary>
    /// Wait until this date before requesting another reset.
    ///</summary>
    public int RetryDate { get; set; }

    public void ComputeFlag()
    {

    }

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

    public void Deserialize(ref ReadOnlyMemory<byte> buffer)
    {
        RetryDate = buffer.ReadInt32();
    }
}