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

namespace MyTelegram.Schema.Account;

///<summary>
/// You successfully requested a password reset, please wait until the specified date before finalizing the reset.
/// See <a href="https://corefork.telegram.org/constructor/account.resetPasswordRequestedWait" />
///</summary>
[TlObject(0xe9effc7d)]
public sealed class TResetPasswordRequestedWait : IResetPasswordResult
{
    public uint ConstructorId => 0xe9effc7d;
    ///<summary>
    /// Wait until this date before finalizing the reset.
    ///</summary>
    public int UntilDate { get; set; }

    public void ComputeFlag()
    {

    }

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

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