C# Класс NSwag.CodeGeneration.CodeGenerators.ClientGeneratorBase

The client generator base.
Показать файл Открыть проект

Private Properties

Свойство Тип Описание
GenerateClientClass string
GenerateFile string
GenerateFile string
GetClassName string
GetExceptionType string
GetOperations List
GetParameterVariableName string
GetResultDescription string
GetResultType string
GetSuccessResponse SwaggerResponse
GetType string
HasResultType bool

Открытые методы

Метод Описание
GenerateFile ( ) : string

Generates the the whole file containing all needed types.

Защищенные методы

Метод Описание
ClientGeneratorBase ( ITypeResolver resolver, CodeGeneratorSettingsBase codeGeneratorSettings ) : System

Initializes a new instance of the ClientGeneratorBase class.

ResolveParameterType ( SwaggerParameter parameter ) : string

Resolves the type of the parameter.

Приватные методы

Метод Описание
GenerateClientClass ( string controllerName, string controllerClassName, IList operations, ClientGeneratorOutputType outputType ) : string
GenerateFile ( SwaggerDocument document, ClientGeneratorOutputType type ) : string
GenerateFile ( string clientCode, IEnumerable clientClasses, ClientGeneratorOutputType outputType ) : string
GetClassName ( string controllerName ) : string
GetExceptionType ( SwaggerOperation operation ) : string
GetOperations ( SwaggerDocument document ) : List
GetParameterVariableName ( SwaggerParameter parameter ) : string
GetResultDescription ( SwaggerOperation operation ) : string
GetResultType ( SwaggerOperation operation ) : string
GetSuccessResponse ( SwaggerOperation operation ) : SwaggerResponse
GetType ( NJsonSchema.JsonSchema4 schema, bool isNullable, string typeNameHint ) : string
HasResultType ( SwaggerOperation operation ) : bool

Описание методов

ClientGeneratorBase() защищенный Метод

Initializes a new instance of the ClientGeneratorBase class.
protected ClientGeneratorBase ( ITypeResolver resolver, CodeGeneratorSettingsBase codeGeneratorSettings ) : System
resolver ITypeResolver The type resolver.
codeGeneratorSettings CodeGeneratorSettingsBase The code generator settings.
Результат System

GenerateFile() публичный абстрактный Метод

Generates the the whole file containing all needed types.
public abstract GenerateFile ( ) : string
Результат string

ResolveParameterType() защищенный Метод

Resolves the type of the parameter.
protected ResolveParameterType ( SwaggerParameter parameter ) : string
parameter SwaggerParameter The parameter.
Результат string