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

namespace MyTelegram.Schema.Messages;

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

    public void ComputeFlag()
    {

    }

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

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