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

namespace MyTelegram.Schema;

///<summary>
/// Number of online users in a chat
/// See <a href="https://corefork.telegram.org/constructor/chatOnlines" />
///</summary>
[TlObject(0xf041e250)]
public sealed class TChatOnlines : IChatOnlines
{
    public uint ConstructorId => 0xf041e250;
    ///<summary>
    /// Number of online users
    ///</summary>
    public int Onlines { get; set; }

    public void ComputeFlag()
    {

    }

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

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