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

namespace MyTelegram.Schema;

///<summary>
/// Online status of the user.
/// See <a href="https://corefork.telegram.org/constructor/userStatusOnline" />
///</summary>
[TlObject(0xedb93949)]
public sealed class TUserStatusOnline : IUserStatus
{
    public uint ConstructorId => 0xedb93949;
    ///<summary>
    /// Time to expiration of the current online status
    ///</summary>
    public int Expires { get; set; }

    public void ComputeFlag()
    {

    }

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

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