Amazon.Polly.Model.Internal.MarshallTransformations.SynthesizeSpeechResponseUnmarshaller.Unmarshall C# (CSharp) Méthode

Unmarshall() public méthode

Unmarshaller the response from the service to the response class.
public Unmarshall ( JsonUnmarshallerContext context ) : AmazonWebServiceResponse
context Amazon.Runtime.Internal.Transform.JsonUnmarshallerContext
Résultat Amazon.Runtime.AmazonWebServiceResponse
        public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
        {
            SynthesizeSpeechResponse response = new SynthesizeSpeechResponse();

            response.AudioStream = context.Stream;
            if (context.ResponseData.IsHeaderPresent("Content-Type"))
                response.ContentType = context.ResponseData.GetHeaderValue("Content-Type");
            if (context.ResponseData.IsHeaderPresent("x-amzn-RequestCharacters"))
                response.RequestCharacters = int.Parse(context.ResponseData.GetHeaderValue("x-amzn-RequestCharacters"), CultureInfo.InvariantCulture);

            return response;
        }
SynthesizeSpeechResponseUnmarshaller