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

namespace MyTelegram.Schema;

///<summary>
/// Group call settings were changed
/// See <a href="https://corefork.telegram.org/constructor/channelAdminLogEventActionToggleGroupCallSetting" />
///</summary>
[TlObject(0x56d6a247)]
public sealed class TChannelAdminLogEventActionToggleGroupCallSetting : IChannelAdminLogEventAction
{
    public uint ConstructorId => 0x56d6a247;
    ///<summary>
    /// Whether all users are muted by default upon joining
    /// See <a href="https://corefork.telegram.org/type/Bool" />
    ///</summary>
    public bool JoinMuted { get; set; }

    public void ComputeFlag()
    {

    }

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

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