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

namespace MyTelegram.Schema;

///<summary>
/// Allow only certain users
/// See <a href="https://corefork.telegram.org/constructor/privacyValueAllowUsers" />
///</summary>
[TlObject(0xb8905fb2)]
public sealed class TPrivacyValueAllowUsers : IPrivacyRule
{
    public uint ConstructorId => 0xb8905fb2;
    ///<summary>
    /// Allowed users
    ///</summary>
    public TVector<long> Users { get; set; }

    public void ComputeFlag()
    {

    }

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

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