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

namespace MyTelegram.Schema.Messages;

///<summary>
/// See <a href="https://corefork.telegram.org/method/messages.toggleTodoCompleted" />
///</summary>
[TlObject(0xd3e03124)]
public sealed class RequestToggleTodoCompleted : IRequest<MyTelegram.Schema.IUpdates>
{
    public uint ConstructorId => 0xd3e03124;
    public MyTelegram.Schema.IInputPeer Peer { get; set; }
    public int MsgId { get; set; }
    public TVector<int> Completed { get; set; }
    public TVector<int> Incompleted { get; set; }

    public void ComputeFlag()
    {

    }

    public void Serialize(IBufferWriter<byte> writer)
    {
        ComputeFlag();
        writer.Write(ConstructorId);
        writer.Write(Peer);
        writer.Write(MsgId);
        writer.Write(Completed);
        writer.Write(Incompleted);
    }

    public void Deserialize(ref ReadOnlyMemory<byte> buffer)
    {
        Peer = buffer.Read<MyTelegram.Schema.IInputPeer>();
        MsgId = buffer.ReadInt32();
        Completed = buffer.Read<TVector<int>>();
        Incompleted = buffer.Read<TVector<int>>();
    }
}
