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

namespace MyTelegram.Schema.Users;

///<summary>
/// See <a href="https://corefork.telegram.org/constructor/users.usersSlice" />
///</summary>
[TlObject(0x315a4974)]
public sealed class TUsersSlice : IUsers
{
    public uint ConstructorId => 0x315a4974;
    public int Count { get; set; }
    public TVector<MyTelegram.Schema.IUser> Users { get; set; }

    public void ComputeFlag()
    {

    }

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

    public void Deserialize(ref ReadOnlyMemory<byte> buffer)
    {
        Count = buffer.ReadInt32();
        Users = buffer.Read<TVector<MyTelegram.Schema.IUser>>();
    }
}