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

namespace MyTelegram.Schema;

///<summary>
/// See <a href="https://corefork.telegram.org/constructor/channelAdminLogEventActionToggleAutotranslation" />
///</summary>
[TlObject(0xc517f77e)]
public sealed class TChannelAdminLogEventActionToggleAutotranslation : IChannelAdminLogEventAction
{
    public uint ConstructorId => 0xc517f77e;
    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();
    }
}