C# Class NSwag.CodeGeneration.CodeGenerators.TypeScript.TemplatePartGenerator

Generates the code to process the response.
Mostrar archivo Open project: NSwag/NSwag

Public Methods

Method Description
RenderClientMethodsCode ( ClientTemplateModel model, int tabCount ) : string

Renders the client class helper methods.

RenderProcessResponseCode ( OperationModel operation, int tabCount ) : string

Renders the respone process code.

RenderRequestBodyCode ( OperationModel operation, int tabCount ) : string

Renders the request body generation code.

RenderRequestUrlCode ( OperationModel operation, int tabCount ) : string

Renders the URL generation code.

Method Details

RenderClientMethodsCode() public static method

Renders the client class helper methods.
public static RenderClientMethodsCode ( ClientTemplateModel model, int tabCount ) : string
model NSwag.CodeGeneration.CodeGenerators.TypeScript.Models.ClientTemplateModel The model.
tabCount int The tab count.
return string

RenderProcessResponseCode() public static method

Renders the respone process code.
public static RenderProcessResponseCode ( OperationModel operation, int tabCount ) : string
operation NSwag.CodeGeneration.CodeGenerators.Models.OperationModel The operation.
tabCount int The tab count.
return string

RenderRequestBodyCode() public static method

Renders the request body generation code.
public static RenderRequestBodyCode ( OperationModel operation, int tabCount ) : string
operation NSwag.CodeGeneration.CodeGenerators.Models.OperationModel The operation.
tabCount int The tab count.
return string

RenderRequestUrlCode() public static method

Renders the URL generation code.
public static RenderRequestUrlCode ( OperationModel operation, int tabCount ) : string
operation NSwag.CodeGeneration.CodeGenerators.Models.OperationModel The operation.
tabCount int The tab count.
return string