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

namespace MyTelegram.Schema;

///<summary>
/// See <a href="https://corefork.telegram.org/constructor/todoItem" />
///</summary>
[TlObject(0xcba9a52f)]
public sealed class TTodoItem : ITodoItem
{
    public uint ConstructorId => 0xcba9a52f;
    public int Id { get; set; }
    public MyTelegram.Schema.ITextWithEntities Title { get; set; }

    public void ComputeFlag()
    {

    }

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

    public void Deserialize(ref ReadOnlyMemory<byte> buffer)
    {
        Id = buffer.ReadInt32();
        Title = buffer.Read<MyTelegram.Schema.ITextWithEntities>();
    }
}