Extending a RODL class in fire

I have a class defined on INTf file auto generated by RODL

TBandaTarjeta = public partial class(RemObjects.SDK.Types.ComplexType)

Wich Is the right way to extend this class:

Using inheritance of TBAndaTarjeta

TMyBandaTarjeta = public class(TBandaTarjeta)

Or extending the same class in my code?

TBandaTarjeta = public partial class(RemObjects.SDK.Types.ComplexType)
[mycode]
end;

Best regards

Hello

This is the recommended way:

It allows you to extend the existing class hierarchy horizontally, without adding new classes to it.


Trying to do this:

would result in 2 things:

  1. You wouldn’t be able to send values of type TMyBandaTarjeta to the server because it won’t be able to understand this type
  2. All responses from the server will have the type of TBandaTarjeta, not TMyBandaTarjeta

So all the code added in that way would be practically useless

Regards

1 Like

Thanks.