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

namespace MyTelegram.Schema.Account;

///<summary>
/// When client-side passcode lock feature is enabled, will not show message texts in incoming <a href="https://corefork.telegram.org/api/push-updates">PUSH notifications</a>.
/// See <a href="https://corefork.telegram.org/method/account.updateDeviceLocked" />
///</summary>
[TlObject(0x38df3532)]
public sealed class RequestUpdateDeviceLocked : IRequest<IBool>
{
    public uint ConstructorId => 0x38df3532;
    ///<summary>
    /// Inactivity period after which to start hiding message texts in <a href="https://corefork.telegram.org/api/push-updates">PUSH notifications</a>.
    ///</summary>
    public int Period { get; set; }

    public void ComputeFlag()
    {

    }

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

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