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

namespace MyTelegram.Schema;

///<summary>
/// A <a href="https://corefork.telegram.org/api/forum#forum-topics">forum topic</a> was edited
/// See <a href="https://corefork.telegram.org/constructor/channelAdminLogEventActionEditTopic" />
///</summary>
[TlObject(0xf06fe208)]
public sealed class TChannelAdminLogEventActionEditTopic : IChannelAdminLogEventAction
{
    public uint ConstructorId => 0xf06fe208;
    ///<summary>
    /// Previous topic information
    /// See <a href="https://corefork.telegram.org/type/ForumTopic" />
    ///</summary>
    public MyTelegram.Schema.IForumTopic PrevTopic { get; set; }

    ///<summary>
    /// New topic information
    /// See <a href="https://corefork.telegram.org/type/ForumTopic" />
    ///</summary>
    public MyTelegram.Schema.IForumTopic NewTopic { get; set; }

    public void ComputeFlag()
    {

    }

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

    public void Deserialize(ref ReadOnlyMemory<byte> buffer)
    {
        PrevTopic = buffer.Read<MyTelegram.Schema.IForumTopic>();
        NewTopic = buffer.Read<MyTelegram.Schema.IForumTopic>();
    }
}