wing328 f064d29e82 Use unescaped path in API client templates (#5154)
* use unescaped path in api client templates

* use unescape basePath in API client templates
2017-03-22 20:49:06 +08:00

38 lines
912 B
Plaintext

#ifndef {{classname}}_H_
#define {{classname}}_H_
#include <FNet.h>
#include "{{prefix}}ApiClient.h"
#include "{{prefix}}Error.h"
{{#imports}}{{{import}}}
{{/imports}}
using namespace Tizen::Net::Http;
namespace Swagger {
{{#operations}}
class {{classname}} {
public:
{{classname}}();
virtual ~{{classname}}();
{{#operation}}
{{#returnType}}{{{returnType}}} {{/returnType}}{{^returnType}}void {{/returnType}}
{{nickname}}WithCompletion({{#allParams}}{{{dataType}}} {{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}}{{#hasParams}},{{/hasParams}} {{#returnType}}void (* handler)({{returnType}}, {{prefix}}Error*){{/returnType}}{{^returnType}}void(* handler)({{prefix}}Error*){{/returnType}});
{{/operation}}
static String getBasePath() {
return L"{{{basePath}}}";
}
private:
{{prefix}}ApiClient* client;
};
{{/operations}}
} /* namespace Swagger */
#endif /* {{classname}}_H_ */