// <auto-generated/>

namespace MyTelegram.Schema;


[TlObject(0x276d3ec6)]
public sealed class TMsgDetailedInfo : IMsgDetailedInfo
{
    public uint ConstructorId => 0x276d3ec6;
    public long MsgId { get; set; }
    public long AnswerMsgId { get; set; }
    public int Bytes { get; set; }
    public int Status { get; set; }

    public void ComputeFlag()
    {

    }

    public void Serialize(IBufferWriter<byte> writer)
    {
        ComputeFlag();
        writer.Write(ConstructorId);
        writer.Write(MsgId);
        writer.Write(AnswerMsgId);
        writer.Write(Bytes);
        writer.Write(Status);
    }

    public void Deserialize(ref ReadOnlyMemory<byte> buffer)
    {
        MsgId = buffer.ReadInt64();
        AnswerMsgId = buffer.ReadInt64();
        Bytes = buffer.ReadInt32();
        Status = buffer.ReadInt32();
    }
}