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

namespace MyTelegram.Schema;

///<summary>
/// Disallow only certain users
/// See <a href="https://corefork.telegram.org/constructor/privacyValueDisallowUsers" />
///</summary>
[TlObject(0xe4621141)]
public sealed class TPrivacyValueDisallowUsers : IPrivacyRule
{
    public uint ConstructorId => 0xe4621141;
    ///<summary>
    /// Disallowed 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>>();
    }
}