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

namespace MyTelegram.Schema;

///<summary>
/// <a href="https://corefork.telegram.org/api/antispam">Native antispam</a> functionality was enabled or disabled.
/// See <a href="https://corefork.telegram.org/constructor/channelAdminLogEventActionToggleAntiSpam" />
///</summary>
[TlObject(0x64f36dfc)]
public sealed class TChannelAdminLogEventActionToggleAntiSpam : IChannelAdminLogEventAction
{
    public uint ConstructorId => 0x64f36dfc;
    ///<summary>
    /// Whether antispam functionality was enabled or disabled.
    /// See <a href="https://corefork.telegram.org/type/Bool" />
    ///</summary>
    public bool NewValue { get; set; }

    public void ComputeFlag()
    {

    }

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

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