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

namespace MyTelegram.Schema;

///<summary>
/// Channel signatures were enabled/disabled
/// See <a href="https://corefork.telegram.org/constructor/channelAdminLogEventActionToggleSignatures" />
///</summary>
[TlObject(0x26ae0971)]
public sealed class TChannelAdminLogEventActionToggleSignatures : IChannelAdminLogEventAction
{
    public uint ConstructorId => 0x26ae0971;
    ///<summary>
    /// New value
    /// 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();
    }
}