Table of Contents

Namespace Amazon.Runtime.Internal.Transform

Classes

BoolUnmarshaller

Unmarshaller for bool fields

ByteUnmarshaller

Unmarshaller for byte fields

CustomMarshallTransformations
DateTimeEpochLongMillisecondsUnmarshaller
DateTimeUnmarshaller

Unmarshaller for DateTime fields

DecimalUnmarshaller

Unmarshaller for decimal fields

DictionaryUnmarshaller<TKey, TValue, TKeyUnmarshaller, TValueUnmarshaller>
DoubleUnmarshaller

Unmarshaller for double fields

EC2ResponseUnmarshaller

Class for unmarshalling EC2 service responses.

EC2UnmarshallerContext
ErrorResponseUnmarshaller

Response Unmarshaller for all Errors

FloatUnmarshaller

Unmarshaller for float fields

HttpClientResponseData
HttpResponseMessageBody
IntUnmarshaller

Unmarshaller for int fields

JsonErrorResponseUnmarshaller

First-pass unmarshaller for all errors

JsonMarshallerContext
JsonResponseUnmarshaller

Class for unmarshalling JSON service responses.

JsonUnmarshallerContext

Wraps a json string for unmarshalling.

Each Read() operation gets the next token. TestExpression() is used to match the current key-chain to an xpath expression. The general pattern looks like this:

JsonUnmarshallerContext context = new JsonUnmarshallerContext(jsonString);
while (context.Read())
{
    if (context.IsKey)
    {
        if (context.TestExpresion("path/to/element"))
        {
            myObject.stringMember = stringUnmarshaller.GetInstance().Unmarshall(context);
            continue;
        }
    }
}
KeyValueUnmarshaller<K, V, KUnmarshaller, VUnmarshaller>
ListUnmarshaller<I, IUnmarshaller>
LongUnmarshaller

Unmarshaller for long fields

MarshallerContext
MemoryStreamUnmarshaller

Unmarshaller for MemoryStream fields

NullableDateTimeUnmarshaller

Unmarshaller for nullable DateTime fields. Implemented only for JSON context to handle cases where value can be null e.g. {'Priority': null}. This unmarshaller is not implemented for XML context, as XML responses will null elements (xsi:nil='true') will be skipped by the XML parser.

NullableIntUnmarshaller

Unmarshaller for nullable int fields. Implemented only for JSON context to handle cases where value can be null e.g. {'Priority': null}. This unmarshaller is not implemented for XML context, as XML responses will null elements (xsi:nil='true') will be skipped by the XML parser.

ResponseMetadataUnmarshaller

Unmarshaller for ResponseMetadata

ResponseUnmarshaller

Abstract class for unmarshalling service responses.

StringUnmarshaller

Unmarshaller for string fields

UnmarshallerContext

Base class for the UnmarshallerContext objects that are used to unmarshall a web-service response.

UnmarshallerExtensions
XmlMarshallerContext
XmlResponseUnmarshaller

Class for unmarshalling XML service responses.

XmlUnmarshallerContext

Wrap an XmltextReader for simulating an event stream.

Each Read() operation goes either to the next element or next attribute within the current element. TestExpression() is used to match the current event to an xpath expression. The general pattern looks like this:

UnmarshallerContext context = new UnmarshallerContext(...);
while (context.Read())
{
    if (context.TestExpresion("path/to/element"))
    {
        myObject.stringMember = stringUnmarshaller.GetInstance().Unmarshall(context);
        continue;
    }
    if (context.TestExpression("path/to/@attribute"))
        myObject.MyComplexTypeMember = MyComplexTypeUnmarshaller.GetInstance().Unmarshall(context);
}

Interfaces

IErrorResponseUnmarshaller<TUnmarshaller, TUnmarshalleContext>

Interface for unmarshallers which unmarshall objects from response data. The Unmarshallers are stateless, and only encode the rules for what data in the XML stream goes into what members of an object.

IHttpResponseBody
IMarshaller<T, R>
IRequestMarshaller<R, T>
IResponseUnmarshaller<T, R>

Interface for unmarshallers which unmarshall service responses. The Unmarshallers are stateless, and only encode the rules for what data in the XML stream goes into what members of an object.

IUnmarshaller<T, R>

Interface for unmarshallers which unmarshall objects from response data. The Unmarshallers are stateless, and only encode the rules for what data in the XML stream goes into what members of an object.

IWebResponseData