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

namespace MyTelegram.Schema;

///<summary>
/// <a href="https://corefork.telegram.org/api/forum">Forum</a> functionality was enabled or disabled.
/// See <a href="https://corefork.telegram.org/constructor/channelAdminLogEventActionToggleForum" />
///</summary>
[TlObject(0x2cc6383)]
public sealed class TChannelAdminLogEventActionToggleForum : IChannelAdminLogEventAction
{
    public uint ConstructorId => 0x2cc6383;
    ///<summary>
    /// Whether <a href="https://corefork.telegram.org/api/forum">forum</a> 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();
    }
}