Method | Description | |
---|---|---|
AvailableInWWW ( Operation operation ) : bool |
returns if an operation is supported by the unity API or not.
|
|
Enumerations ( bool includeParentEnums ) : IEnumerable |
Returns list of enums defined in the service model.
|
|
FindOperation ( string name ) : Operation |
Gets the operation information based on the name of the operation
|
|
FindShape ( string name ) : |
Search the model for shape.
|
|
InitializeServiceModel ( TextReader reader ) : void |
Sets the base json info no matter how the model was constructed
|
|
ServiceModel ( TextReader serviceModelReader, TextReader customizationReader ) : System |
Used for unit testing, creates a service model from a TextReader so that the generation can be checked
|
|
ServiceModel ( string serviceModelPath, string customizationModelPath ) : System |
Used by the generator to create a model for the service being generated
|
|
ToString ( ) : string |
The service model represented as a string
|
Method | Description | |
---|---|---|
CapitalizeFirstChar ( string text ) : string |
Capitalizes the first character of a string, used to create proper naming for services, attributes, and operations
|
public AvailableInWWW ( Operation operation ) : bool | ||
operation | Operation | |
return | bool |
public Enumerations ( bool includeParentEnums ) : IEnumerable |
||
includeParentEnums | bool | Includes enums from current service model, which are also /// defined in the parent model. |
return | IEnumerable |
public FindOperation ( string name ) : Operation | ||
name | string | The name of the operation that information is needed for |
return | Operation |
public FindShape ( string name ) : |
||
name | string | The name of the shape to search for |
return |
public InitializeServiceModel ( TextReader reader ) : void | ||
reader | TextReader | The reader to pull the model json from |
return | void |
public ServiceModel ( TextReader serviceModelReader, TextReader customizationReader ) : System | ||
serviceModelReader | TextReader | The reader to get the model information from |
customizationReader | TextReader | The reader to get any customizations for the service from |
return | System |
public ServiceModel ( string serviceModelPath, string customizationModelPath ) : System | ||
serviceModelPath | string | Path to the file containing the model of the service |
customizationModelPath | string | Path to the customizations file for the service |
return | System |