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

namespace MyTelegram.Schema;

///<summary>
/// The geogroup location was changed
/// See <a href="https://corefork.telegram.org/constructor/channelAdminLogEventActionChangeLocation" />
///</summary>
[TlObject(0xe6b76ae)]
public sealed class TChannelAdminLogEventActionChangeLocation : IChannelAdminLogEventAction
{
    public uint ConstructorId => 0xe6b76ae;
    ///<summary>
    /// Previous location
    /// See <a href="https://corefork.telegram.org/type/ChannelLocation" />
    ///</summary>
    public MyTelegram.Schema.IChannelLocation PrevValue { get; set; }

    ///<summary>
    /// New location
    /// See <a href="https://corefork.telegram.org/type/ChannelLocation" />
    ///</summary>
    public MyTelegram.Schema.IChannelLocation 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.IChannelLocation>();
        NewValue = buffer.Read<MyTelegram.Schema.IChannelLocation>();
    }
}