1
0
Fork 0
mirror of https://github.com/HenkKalkwater/harbour-sailfin.git synced 2024-11-15 14:05:17 +00:00
harbour-sailfin/core/codegen/loader_header.hbs

26 lines
736 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;
QByteArray body(const {{e.endpoint.parameterType}}& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
2021-03-24 19:04:03 +00:00
};
{{/if}}
{{/each}}