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

namespace MyTelegram.Schema.Account;

///<summary>
/// Updates online user status.
/// See <a href="https://corefork.telegram.org/method/account.updateStatus" />
///</summary>
[TlObject(0x6628562c)]
public sealed class RequestUpdateStatus : IRequest<IBool>
{
    public uint ConstructorId => 0x6628562c;
    ///<summary>
    /// If <a href="https://corefork.telegram.org/constructor/boolTrue">(boolTrue)</a> is transmitted, user status will change to <a href="https://corefork.telegram.org/constructor/userStatusOffline">(userStatusOffline)</a>.
    /// See <a href="https://corefork.telegram.org/type/Bool" />
    ///</summary>
    public bool Offline { get; set; }

    public void ComputeFlag()
    {

    }

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

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