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

namespace MyTelegram.Schema;

///<summary>
/// The <a href="https://corefork.telegram.org/api/emoji-status">emoji status</a> was changed
/// See <a href="https://corefork.telegram.org/constructor/channelAdminLogEventActionChangeEmojiStatus" />
///</summary>
[TlObject(0x3ea9feb1)]
public sealed class TChannelAdminLogEventActionChangeEmojiStatus : IChannelAdminLogEventAction
{
    public uint ConstructorId => 0x3ea9feb1;
    ///<summary>
    /// Previous emoji status
    /// See <a href="https://corefork.telegram.org/type/EmojiStatus" />
    ///</summary>
    public MyTelegram.Schema.IEmojiStatus PrevValue { get; set; }

    ///<summary>
    /// New emoji status
    /// See <a href="https://corefork.telegram.org/type/EmojiStatus" />
    ///</summary>
    public MyTelegram.Schema.IEmojiStatus NewValue { get; set; }

    public void ComputeFlag()
    {

    }

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

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