ServiceClientGenerator.GeneratorDriver.GetResponseUnmarshaller C# (CSharp) Method

GetResponseUnmarshaller() private method

Determines the type of response unmarshaller to be used based on the service model type
private GetResponseUnmarshaller ( ) : BaseResponseUnmarshaller
return BaseResponseUnmarshaller
        BaseResponseUnmarshaller GetResponseUnmarshaller()
        {
            switch (this.Configuration.ServiceModel.Type)
            {
                case ServiceType.Rest_Json:
                case ServiceType.Json:
                    return new JsonRPCResponseUnmarshaller();
                case ServiceType.Query:
                    if (this.Configuration.ServiceModel.IsEC2Protocol)
                        return new AWSQueryEC2ResponseUnmarshaller();
                    return new AWSQueryResponseUnmarshaller();
                case ServiceType.Rest_Xml:
                    return new RestXmlResponseUnmarshaller();
                default:
                    throw new Exception("No response unmarshaller for service type: " + this.Configuration.ServiceModel.Type);
            }
        }