1
0
Fork 0
mirror of https://github.com/HenkKalkwater/harbour-sailfin.git synced 2024-05-16 19:12:43 +00:00
harbour-sailfin/core/codegen/loader_header.hbs

24 lines
593 B
Handlebars
Raw Normal View History

using namespace {{dtoNamespace}};
{{#each endpoints as |e|}}
{{#if e.endpoint.hasSuccessResponse}}
{{#if e.endpoint.description.length > 0}}
2021-03-24 19:04:03 +00:00
/**
* @brief {{e.endpoint.description}}
2021-03-24 19:04:03 +00:00
*/
{{/if}}
class {{e.className}}Loader : public {{supportNamespace}}::HttpLoader<{{e.endpoint.resultType}}, {{e.endpoint.parameterType}}> {
2021-03-24 19:04:03 +00:00
public:
explicit {{e.className}}Loader(ApiClient *apiClient = nullptr);
2021-03-24 19:04:03 +00:00
protected:
QString path(const {{e.endpoint.parameterType}}& parameters) const override;
QUrlQuery query(const {{e.endpoint.parameterType}}& parameters) const override;
2021-03-24 19:04:03 +00:00
};
{{/if}}
{{/each}}