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

namespace MyTelegram.Schema;

///<summary>
/// See <a href="https://corefork.telegram.org/constructor/todoCompletion" />
///</summary>
[TlObject(0x4cc120b7)]
public sealed class TTodoCompletion : ITodoCompletion
{
    public uint ConstructorId => 0x4cc120b7;
    public int Id { get; set; }
    public long CompletedBy { get; set; }
    public int Date { get; set; }

    public void ComputeFlag()
    {

    }

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

    public void Deserialize(ref ReadOnlyMemory<byte> buffer)
    {
        Id = buffer.ReadInt32();
        CompletedBy = buffer.ReadInt64();
        Date = buffer.ReadInt32();
    }
}