These are chat archives for Ruhrpottpatriot/GW2.NET

Mar 2016
Robert Logiewa
Mar 26 2016 11:56
Ok, I think I got a way to remove the converter interface and simplify conversion in general. I'd like your thoughts:
Data Models now implement IConvertible, which offers the virtual Func<TIn, TOut> Convert method. This method handles conversion from data model to local model. The IResponseConverter interface then just calls the method and conversion is done. If a user wants to customize the conversion he can either write a new DataModel or inherit from an existing one.
This means adding a new conversion is as easy as adding a new DataModel.