mirror of
https://github.com/HenkKalkwater/harbour-sailfin.git
synced 2024-11-05 09:35:18 +00:00
Chris Josten
03bc3f795a
This reduces the amount of files generated by arround 300 and makes for quicker compilation times.
24 lines
593 B
Handlebars
24 lines
593 B
Handlebars
using namespace {{dtoNamespace}};
|
|
|
|
{{#each endpoints as |e|}}
|
|
{{#if e.endpoint.hasSuccessResponse}}
|
|
|
|
{{#if e.endpoint.description.length > 0}}
|
|
/**
|
|
* @brief {{e.endpoint.description}}
|
|
|
|
*/
|
|
{{/if}}
|
|
|
|
|
|
class {{e.className}}Loader : public {{supportNamespace}}::HttpLoader<{{e.endpoint.resultType}}, {{e.endpoint.parameterType}}> {
|
|
public:
|
|
explicit {{e.className}}Loader(ApiClient *apiClient = nullptr);
|
|
|
|
protected:
|
|
QString path(const {{e.endpoint.parameterType}}& parameters) const override;
|
|
QUrlQuery query(const {{e.endpoint.parameterType}}& parameters) const override;
|
|
};
|
|
{{/if}}
|
|
{{/each}}
|