1
0
Fork 0
mirror of https://github.com/HenkKalkwater/harbour-sailfin.git synced 2024-11-23 01:35:18 +00:00
harbour-sailfin/core/codegen/loader_header.hbs

22 lines
538 B
Handlebars
Raw Normal View History

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