C# Класс ServiceClientGenerator.SimpleConstructorsModel

A model that represents the simple constructors of a structure. These constructors are specified in customizations Simple constructors are constructors that are added to request objects that take parameters to set members of the object. This allows for easier creation of these request objects.
Показать файл Открыть проект

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

Метод Описание
CreateSimpleConstructors ( string className ) : bool

Determines if custom constructors need to be generated for the structure

GetFormMembers ( List form, IList operationMembers ) : List

A list of members for the structure that are used in the constructor form

GetSimpleParameters ( List form, IList operationMembers ) : string

Used to generate a string used to define the params for the constructor

Initialize ( TextReader reader ) : void

Sets the document root from a json text

SimpleConstructorsModel ( JsonData root ) : Json.LitJson

Creates a model for simple constructors for the structure. Used to customize the generation of the structure

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

CreateSimpleConstructors() публичный Метод

Determines if custom constructors need to be generated for the structure
public CreateSimpleConstructors ( string className ) : bool
className string The name of the structure to check for
Результат bool

GetFormMembers() публичный Метод

A list of members for the structure that are used in the constructor form
public GetFormMembers ( List form, IList operationMembers ) : List
form List A list of the member names used by the constructor form
operationMembers IList All of the members for the structure
Результат List

GetSimpleParameters() публичный Метод

Used to generate a string used to define the params for the constructor
public GetSimpleParameters ( List form, IList operationMembers ) : string
form List List of member names for the constructor form
operationMembers IList All of the members of the structure
Результат string

Initialize() публичный Метод

Sets the document root from a json text
public Initialize ( TextReader reader ) : void
reader TextReader The reader to get the json text from
Результат void

SimpleConstructorsModel() публичный Метод

Creates a model for simple constructors for the structure. Used to customize the generation of the structure
public SimpleConstructorsModel ( JsonData root ) : Json.LitJson
root JsonData The json data that contains information about the customization
Результат Json.LitJson