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

namespace MyTelegram.Schema;

///<summary>
/// A chat invite was edited
/// See <a href="https://corefork.telegram.org/constructor/channelAdminLogEventActionExportedInviteEdit" />
///</summary>
[TlObject(0xe90ebb59)]
public sealed class TChannelAdminLogEventActionExportedInviteEdit : IChannelAdminLogEventAction
{
    public uint ConstructorId => 0xe90ebb59;
    ///<summary>
    /// Previous chat invite information
    /// See <a href="https://corefork.telegram.org/type/ExportedChatInvite" />
    ///</summary>
    public MyTelegram.Schema.IExportedChatInvite PrevInvite { get; set; }

    ///<summary>
    /// New chat invite information
    /// See <a href="https://corefork.telegram.org/type/ExportedChatInvite" />
    ///</summary>
    public MyTelegram.Schema.IExportedChatInvite NewInvite { get; set; }

    public void ComputeFlag()
    {

    }

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

    public void Deserialize(ref ReadOnlyMemory<byte> buffer)
    {
        PrevInvite = buffer.Read<MyTelegram.Schema.IExportedChatInvite>();
        NewInvite = buffer.Read<MyTelegram.Schema.IExportedChatInvite>();
    }
}