// <auto-generated/>

namespace MyTelegram.Schema;


[TlObject(0xa7eff811)]
public sealed class TBadMsgNotification : IBadMsgNotification
{
    public uint ConstructorId => 0xa7eff811;
    public long BadMsgId { get; set; }
    public int BadMsgSeqno { get; set; }
    public int ErrorCode { get; set; }

    public void ComputeFlag()
    {

    }

    public void Serialize(IBufferWriter<byte> writer)
    {
        ComputeFlag();
        writer.Write(ConstructorId);
        writer.Write(BadMsgId);
        writer.Write(BadMsgSeqno);
        writer.Write(ErrorCode);
    }

    public void Deserialize(ref ReadOnlyMemory<byte> buffer)
    {
        BadMsgId = buffer.ReadInt64();
        BadMsgSeqno = buffer.ReadInt32();
        ErrorCode = buffer.ReadInt32();
    }
}