Extended the api-class generation by a interface generation

This commit is contained in:
Fredrik Gustafsson 2015-05-29 12:19:28 +02:00
parent 049299f07f
commit 41e4fc79ae

View File

@ -9,7 +9,16 @@ using {{modelPackage}};
namespace {{package}} {
{{#operations}}
public class {{classname}} {
public interface I{{classname}} {
{{#operation}}
{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}void{{/returnType}} {{nickname}} ({{#allParams}}{{{dataType}}} {{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}});
{{#returnType}}Task<{{{returnType}}}>{{/returnType}}{{^returnType}}Task{{/returnType}} {{nickname}}Async ({{#allParams}}{{{dataType}}} {{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}});
{{/operation}}
}
public class {{classname}} : I{{classname}} {
string basePath;
protected RestClient restClient;