ServiceClientGenerator.GeneratorDriver.GetStructureUnmarshaller C# (CSharp) Method

GetStructureUnmarshaller() private method

Determines the Unmarshaller for structures based on the service model type
private GetStructureUnmarshaller ( ) : BaseResponseUnmarshaller
return BaseResponseUnmarshaller
        BaseResponseUnmarshaller GetStructureUnmarshaller()
        {
            switch (this.Configuration.ServiceModel.Type)
            {
                case ServiceType.Rest_Json:
                case ServiceType.Json:
                    return new JsonRPCStructureUnmarshaller();
                case ServiceType.Query:
                    return new AWSQueryStructureUnmarshaller();
                case ServiceType.Rest_Xml:
                    return new RestXmlStructureUnmarshaller();
                default:
                    throw new Exception("No structure unmarshaller for service type: " + this.Configuration.ServiceModel.Type);
            }
        }