// <auto-generated/>

namespace MyTelegram.Schema;


[TlObject(0x2144ca19)]
public sealed class TRpcError : IObject
{
    public uint ConstructorId => 0x2144ca19;
    public int ErrorCode { get; set; }
    public string ErrorMessage { get; set; }

    public void ComputeFlag()
    {

    }

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

    public void Deserialize(ref ReadOnlyMemory<byte> buffer)
    {
        ErrorCode = buffer.ReadInt32();
        ErrorMessage = buffer.ReadString();
    }
}