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

namespace MyTelegram.Schema;

///<summary>
/// New <a href="https://corefork.telegram.org/api/folders">folder</a> order
/// See <a href="https://corefork.telegram.org/constructor/updateDialogFilterOrder" />
///</summary>
[TlObject(0xa5d72105)]
public sealed class TUpdateDialogFilterOrder : IUpdate
{
    public uint ConstructorId => 0xa5d72105;
    ///<summary>
    /// Ordered <a href="https://corefork.telegram.org/api/folders">folder IDs</a>
    ///</summary>
    public TVector<int> Order { get; set; }

    public void ComputeFlag()
    {

    }

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

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