All Downloads are FREE. Search and download functionalities are using the official Maven repository.

objc.api-header.mustache Maven / Gradle / Ivy

There is a newer version: 7.6.0
Show newest version
#import 
{{#imports}}#import "{{import}}.h"
{{/imports}}
#import "{{classPrefix}}Api.h"

{{>licenceInfo}}


@interface {{classname}}: NSObject <{{classPrefix}}Api>

extern NSString* k{{classname}}ErrorDomain;
extern NSInteger k{{classname}}MissingParamErrorCode;

-(instancetype) initWithApiClient:({{classPrefix}}ApiClient *)apiClient NS_DESIGNATED_INITIALIZER;

{{#operations}}
{{#operation}}
/// {{{summary}}}
/// {{{notes}}}
///
/// {{#allParams}}@param {{paramName}} {{description}}{{^required}} (optional){{/required}}{{#defaultValue}} (default to {{{.}}}){{/defaultValue}}
/// {{/allParams}}{{#responses}}
///  code:{{{code}}} message:"{{{message}}}"{{^-last}},{{/-last}}{{/responses}}
///
/// @return {{{returnType}}}{{^returnType}}void{{/returnType}}
-(NSURLSessionTask*) {{#vendorExtensions.x-objc-operationId}}{{vendorExtensions.x-objc-operationId}}{{/vendorExtensions.x-objc-operationId}}{{^vendorExtensions.x-objc-operationId}}{{nickname}}{{#hasParams}}With{{vendorExtensions.x-first-param-alt-name}}{{/hasParams}}{{^hasParams}}WithCompletionHandler: {{/hasParams}}{{/vendorExtensions.x-objc-operationId}}{{#allParams}}{{^-first}}
    {{paramName}}{{/-first}}: ({{{dataType}}}) {{paramName}}{{/allParams}}
    {{#hasParams}}completionHandler: {{/hasParams}}(void (^)({{#returnBaseType}}{{{returnType}}} output, {{/returnBaseType}}NSError* error)) handler;

{{newline}}
{{/operation}}
{{/operations}}

@end




© 2015 - 2024 Weber Informatics LLC | Privacy Policy