2021-03-24 19:04:03 +00:00
|
|
|
{{#if endpoint.hasSuccessResponse}}
|
2021-03-28 02:00:00 +00:00
|
|
|
|
|
|
|
using namespace {{dtoNamespace}};
|
|
|
|
|
2021-03-24 19:04:03 +00:00
|
|
|
{{#if endpoint.description.length > 0}}
|
|
|
|
/**
|
|
|
|
* @brief {{endpoint.description}}
|
|
|
|
|
|
|
|
*/
|
|
|
|
{{/if}}
|
|
|
|
|
2021-03-28 02:00:00 +00:00
|
|
|
|
|
|
|
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:
|
2021-03-25 16:32:00 +00:00
|
|
|
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}}
|