C# 클래스 NSwag.CodeGeneration.CodeGenerators.TypeScript.TemplatePartGenerator

Generates the code to process the response.
파일 보기 프로젝트 열기: NSwag/NSwag

공개 메소드들

메소드 설명
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.

메소드 상세

RenderClientMethodsCode() 공개 정적인 메소드

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.
리턴 string

RenderProcessResponseCode() 공개 정적인 메소드

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.
리턴 string

RenderRequestBodyCode() 공개 정적인 메소드

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.
리턴 string

RenderRequestUrlCode() 공개 정적인 메소드

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.
리턴 string