本文整理汇总了C#中ListUnmarshaller类的典型用法代码示例。如果您正苦于以下问题:C# ListUnmarshaller类的具体用法?C# ListUnmarshaller怎么用?C# ListUnmarshaller使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ListUnmarshaller类属于命名空间,在下文中一共展示了ListUnmarshaller类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Unmarshall
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
ListLocalDisksResponse response = new ListLocalDisksResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("GatewayARN", targetDepth))
{
response.GatewayARN = StringUnmarshaller.GetInstance().Unmarshall(context);
continue;
}
if (context.TestExpression("Disks", targetDepth))
{
var unmarshaller = new ListUnmarshaller<Disk,DiskUnmarshaller>(
DiskUnmarshaller.GetInstance());
response.Disks = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
示例2: Unmarshall
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
GetRecordsResponse response = new GetRecordsResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("MillisBehindLatest", targetDepth))
{
var unmarshaller = LongUnmarshaller.Instance;
response.MillisBehindLatest = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("NextShardIterator", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.NextShardIterator = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Records", targetDepth))
{
var unmarshaller = new ListUnmarshaller<Record, RecordUnmarshaller>(RecordUnmarshaller.Instance);
response.Records = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
示例3: Unmarshall
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
DescribeMountTargetsResponse response = new DescribeMountTargetsResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("Marker", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.Marker = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("MountTargets", targetDepth))
{
var unmarshaller = new ListUnmarshaller<MountTargetDescription, MountTargetDescriptionUnmarshaller>(MountTargetDescriptionUnmarshaller.Instance);
response.MountTargets = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("NextMarker", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.NextMarker = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
示例4: Unmarshall
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
BatchWriteItemResponse response = new BatchWriteItemResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("ConsumedCapacity", targetDepth))
{
var unmarshaller = new ListUnmarshaller<ConsumedCapacity, ConsumedCapacityUnmarshaller>(ConsumedCapacityUnmarshaller.Instance);
response.ConsumedCapacity = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ItemCollectionMetrics", targetDepth))
{
var unmarshaller = new DictionaryUnmarshaller<string, List<ItemCollectionMetrics>, StringUnmarshaller, ListUnmarshaller<ItemCollectionMetrics, ItemCollectionMetricsUnmarshaller>>(StringUnmarshaller.Instance, new ListUnmarshaller<ItemCollectionMetrics, ItemCollectionMetricsUnmarshaller>(ItemCollectionMetricsUnmarshaller.Instance));
response.ItemCollectionMetrics = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("UnprocessedItems", targetDepth))
{
var unmarshaller = new DictionaryUnmarshaller<string, List<WriteRequest>, StringUnmarshaller, ListUnmarshaller<WriteRequest, WriteRequestUnmarshaller>>(StringUnmarshaller.Instance, new ListUnmarshaller<WriteRequest, WriteRequestUnmarshaller>(WriteRequestUnmarshaller.Instance));
response.UnprocessedItems = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
示例5: Unmarshall
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
TestRoleResponse response = new TestRoleResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("Success", targetDepth))
{
response.Success = StringUnmarshaller.GetInstance().Unmarshall(context);
continue;
}
if (context.TestExpression("Messages", targetDepth))
{
var unmarshaller = new ListUnmarshaller<String,StringUnmarshaller>(
StringUnmarshaller.GetInstance());
response.Messages = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
示例6: Unmarshall
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
ListJobsByStatusResponse response = new ListJobsByStatusResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("Jobs", targetDepth))
{
var unmarshaller = new ListUnmarshaller<Job, JobUnmarshaller>(JobUnmarshaller.Instance);
response.Jobs = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("NextPageToken", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.NextPageToken = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
示例7: Unmarshall
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
QueryObjectsResponse response = new QueryObjectsResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("hasMoreResults", targetDepth))
{
var unmarshaller = BoolUnmarshaller.Instance;
response.HasMoreResults = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ids", targetDepth))
{
var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance);
response.Ids = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("marker", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.Marker = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
示例8: Unmarshall
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
ListPipelinesResponse response = new ListPipelinesResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("hasMoreResults", targetDepth))
{
var unmarshaller = BoolUnmarshaller.Instance;
response.HasMoreResults = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("marker", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.Marker = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("pipelineIdList", targetDepth))
{
var unmarshaller = new ListUnmarshaller<PipelineIdName, PipelineIdNameUnmarshaller>(PipelineIdNameUnmarshaller.Instance);
response.PipelineIdList = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
示例9: Unmarshall
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
LookupDeveloperIdentityResponse response = new LookupDeveloperIdentityResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("DeveloperUserIdentifierList", targetDepth))
{
var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance);
response.DeveloperUserIdentifierList = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("IdentityId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.IdentityId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("NextToken", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.NextToken = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
示例10: Unmarshall
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
PutPipelineDefinitionResponse response = new PutPipelineDefinitionResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("errored", targetDepth))
{
var unmarshaller = BoolUnmarshaller.Instance;
response.Errored = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("validationErrors", targetDepth))
{
var unmarshaller = new ListUnmarshaller<ValidationError, ValidationErrorUnmarshaller>(ValidationErrorUnmarshaller.Instance);
response.ValidationErrors = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("validationWarnings", targetDepth))
{
var unmarshaller = new ListUnmarshaller<ValidationWarning, ValidationWarningUnmarshaller>(ValidationWarningUnmarshaller.Instance);
response.ValidationWarnings = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
示例11: Unmarshall
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
DescribeTapesResponse response = new DescribeTapesResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("Tapes", targetDepth))
{
var unmarshaller = new ListUnmarshaller<Tape,TapeUnmarshaller>(
TapeUnmarshaller.GetInstance());
response.Tapes = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Marker", targetDepth))
{
response.Marker = StringUnmarshaller.GetInstance().Unmarshall(context);
continue;
}
}
return response;
}
示例12: Unmarshall
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
GetReplicationRunsResponse response = new GetReplicationRunsResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("nextToken", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.NextToken = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("replicationJob", targetDepth))
{
var unmarshaller = ReplicationJobUnmarshaller.Instance;
response.ReplicationJob = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("replicationRunList", targetDepth))
{
var unmarshaller = new ListUnmarshaller<ReplicationRun, ReplicationRunUnmarshaller>(ReplicationRunUnmarshaller.Instance);
response.ReplicationRunList = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
示例13: Unmarshall
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
ListJobsResponse response = new ListJobsResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("JobList", targetDepth))
{
var unmarshaller = new ListUnmarshaller<GlacierJobDescription,GlacierJobDescriptionUnmarshaller>(
GlacierJobDescriptionUnmarshaller.GetInstance());
response.JobList = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Marker", targetDepth))
{
response.Marker = StringUnmarshaller.GetInstance().Unmarshall(context);
continue;
}
}
return response;
}
示例14: Unmarshall
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
DescribeLogGroupsResponse response = new DescribeLogGroupsResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("logGroups", targetDepth))
{
var unmarshaller = new ListUnmarshaller<LogGroup, LogGroupUnmarshaller>(LogGroupUnmarshaller.Instance);
response.LogGroups = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("nextToken", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.NextToken = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
示例15: Unmarshall
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
DiscoverInputSchemaResponse response = new DiscoverInputSchemaResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("InputSchema", targetDepth))
{
var unmarshaller = SourceSchemaUnmarshaller.Instance;
response.InputSchema = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ParsedInputRecords", targetDepth))
{
var unmarshaller = new ListUnmarshaller<List<string>, ListUnmarshaller<string, StringUnmarshaller>>(new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance));
response.ParsedInputRecords = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("RawInputRecords", targetDepth))
{
var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance);
response.RawInputRecords = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}