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

Generates the CSharp service client code.
상속: ClientGeneratorBase
파일 보기 프로젝트 열기: NSwag/NSwag 1 사용 예제들

Private Properties

프로퍼티 타입 설명
AppendExtensionClassIfNecessary string
GenerateClientClass string
GenerateFile string
GetClassName string
GetExceptionType string
GetResultType string
GetType string
UpdateUseDtoClassAndDataConversionCodeProperties void

공개 메소드들

메소드 설명
GenerateFile ( ) : string

Generates the file.

SwaggerToTypeScriptClientGenerator ( SwaggerDocument document, SwaggerToTypeScriptClientGeneratorSettings settings ) : System

Initializes a new instance of the SwaggerToTypeScriptClientGenerator class.

SwaggerToTypeScriptClientGenerator ( SwaggerDocument document, SwaggerToTypeScriptClientGeneratorSettings settings, TypeScriptTypeResolver resolver ) : System

Initializes a new instance of the SwaggerToTypeScriptClientGenerator class.

보호된 메소드들

메소드 설명
ResolveParameterType ( SwaggerParameter parameter ) : string

Resolves the type of the parameter.

비공개 메소드들

메소드 설명
AppendExtensionClassIfNecessary ( string controllerName, string code ) : string
GenerateClientClass ( string controllerName, string controllerClassName, IList operations, ClientGeneratorOutputType outputType ) : string
GenerateFile ( string clientCode, IEnumerable clientClasses, ClientGeneratorOutputType outputType ) : string
GetClassName ( string className ) : string
GetExceptionType ( SwaggerOperation operation ) : string
GetResultType ( SwaggerOperation operation ) : string
GetType ( NJsonSchema.JsonSchema4 schema, bool isNullable, string typeNameHint ) : string
UpdateUseDtoClassAndDataConversionCodeProperties ( IEnumerable operations ) : void

메소드 상세

GenerateFile() 공개 메소드

Generates the file.
public GenerateFile ( ) : string
리턴 string

ResolveParameterType() 보호된 메소드

Resolves the type of the parameter.
protected ResolveParameterType ( SwaggerParameter parameter ) : string
parameter SwaggerParameter The parameter.
리턴 string

SwaggerToTypeScriptClientGenerator() 공개 메소드

Initializes a new instance of the SwaggerToTypeScriptClientGenerator class.
is .
public SwaggerToTypeScriptClientGenerator ( SwaggerDocument document, SwaggerToTypeScriptClientGeneratorSettings settings ) : System
document SwaggerDocument The Swagger document.
settings SwaggerToTypeScriptClientGeneratorSettings The settings.
리턴 System

SwaggerToTypeScriptClientGenerator() 공개 메소드

Initializes a new instance of the SwaggerToTypeScriptClientGenerator class.
is .
public SwaggerToTypeScriptClientGenerator ( SwaggerDocument document, SwaggerToTypeScriptClientGeneratorSettings settings, TypeScriptTypeResolver resolver ) : System
document SwaggerDocument The Swagger document.
settings SwaggerToTypeScriptClientGeneratorSettings The settings.
resolver TypeScriptTypeResolver The resolver.
리턴 System