ServiceClientGenerator.Enumeration.Enumeration C# (CSharp) Method

Enumeration() public method

Creates an enumeration that can model parts of the enumeration for the service
public Enumeration ( ServiceModel model, string name, JsonData data ) : Json.LitJson
model ServiceModel The service model that is using the enumartion
name string The name of the enumeration
data JsonData The json data for the enumartion object
return Json.LitJson
        public Enumeration(ServiceModel model, string name, JsonData data)
        {
            this.model = model;
            _modelName = name;
            _data = data;

            var overrideName = model.Customizations.GetOverrideShapeName(_modelName);
            _outputName = !string.IsNullOrEmpty(overrideName) 
                ? ServiceModel.CapitalizeFirstChar(overrideName)
                : ServiceModel.CapitalizeFirstChar(_modelName);
        }