本文整理汇总了C#中ListUnmarshaller类的典型用法代码示例。如果您正苦于以下问题:C# ListUnmarshaller类的具体用法?C# ListUnmarshaller怎么用?C# ListUnmarshaller使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ListUnmarshaller类属于命名空间,在下文中一共展示了ListUnmarshaller类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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;
}
开发者ID:rossmas,项目名称:aws-sdk-net,代码行数:29,代码来源:ListLocalDisksResponseUnmarshaller.cs
示例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;
}
开发者ID:rajdotnet,项目名称:aws-sdk-net,代码行数:35,代码来源:GetRecordsResponseUnmarshaller.cs
示例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;
}
开发者ID:JonathanHenson,项目名称:aws-sdk-net,代码行数:35,代码来源:DescribeMountTargetsResponseUnmarshaller.cs
示例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;
}
开发者ID:NathanSDunn,项目名称:aws-sdk-unity-samples,代码行数:35,代码来源:BatchWriteItemResponseUnmarshaller.cs
示例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;
}
开发者ID:rsparkyc,项目名称:aws-sdk-net,代码行数:29,代码来源:TestRoleResponseUnmarshaller.cs
示例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;
}
开发者ID:jeffersonjhunt,项目名称:aws-sdk-net,代码行数:25,代码来源:ListJobsByStatusResponseUnmarshaller.cs
示例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;
}
开发者ID:wmatveyenko,项目名称:aws-sdk-net,代码行数:30,代码来源:QueryObjectsResponseUnmarshaller.cs
示例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;
}
开发者ID:wmatveyenko,项目名称:aws-sdk-net,代码行数:30,代码来源:ListPipelinesResponseUnmarshaller.cs
示例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;
}
开发者ID:paveltimofeev,项目名称:aws-sdk-unity,代码行数:35,代码来源:LookupDeveloperIdentityResponseUnmarshaller.cs
示例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;
}
开发者ID:borik,项目名称:aws-sdk-net,代码行数:35,代码来源:PutPipelineDefinitionResponseUnmarshaller.cs
示例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;
}
开发者ID:rossmas,项目名称:aws-sdk-net,代码行数:29,代码来源:DescribeTapesResponseUnmarshaller.cs
示例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;
}
开发者ID:aws,项目名称:aws-sdk-net,代码行数:35,代码来源:GetReplicationRunsResponseUnmarshaller.cs
示例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;
}
开发者ID:rossmas,项目名称:aws-sdk-net,代码行数:29,代码来源:ListJobsResponseUnmarshaller.cs
示例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;
}
开发者ID:rossmas,项目名称:aws-sdk-net,代码行数:25,代码来源:DescribeLogGroupsResponseUnmarshaller.cs
示例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;
}
开发者ID:aws,项目名称:aws-sdk-net,代码行数:35,代码来源:DiscoverInputSchemaResponseUnmarshaller.cs
示例16: 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)
{
ListDatasetsResponse response = new ListDatasetsResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("Count", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
response.Count = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Datasets", targetDepth))
{
var unmarshaller = new ListUnmarshaller<Dataset, DatasetUnmarshaller>(DatasetUnmarshaller.Instance);
response.Datasets = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("NextToken", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.NextToken = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
开发者ID:borik,项目名称:aws-sdk-net,代码行数:35,代码来源:ListDatasetsResponseUnmarshaller.cs
示例17: Unmarshall
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
AddInstanceGroupsResponse response = new AddInstanceGroupsResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("JobFlowId", targetDepth))
{
response.JobFlowId = StringUnmarshaller.GetInstance().Unmarshall(context);
continue;
}
if (context.TestExpression("InstanceGroupIds", targetDepth))
{
var unmarshaller = new ListUnmarshaller<String,StringUnmarshaller>(
StringUnmarshaller.GetInstance());
response.InstanceGroupIds = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
开发者ID:rsparkyc,项目名称:aws-sdk-net,代码行数:29,代码来源:AddInstanceGroupsResponseUnmarshaller.cs
示例18: Unmarshall
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
DescribeCommunicationsResponse response = new DescribeCommunicationsResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("communications", targetDepth))
{
var unmarshaller = new ListUnmarshaller<Communication,CommunicationUnmarshaller>(
CommunicationUnmarshaller.GetInstance());
response.Communications = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("nextToken", targetDepth))
{
response.NextToken = StringUnmarshaller.GetInstance().Unmarshall(context);
continue;
}
}
return response;
}
开发者ID:keyanmca,项目名称:aws-sdk-net,代码行数:29,代码来源:DescribeCommunicationsResponseUnmarshaller.cs
示例19: 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)
{
ListGrantsResponse response = new ListGrantsResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("Grants", targetDepth))
{
var unmarshaller = new ListUnmarshaller<GrantListEntry, GrantListEntryUnmarshaller>(GrantListEntryUnmarshaller.Instance);
response.Grants = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("NextMarker", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.NextMarker = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Truncated", targetDepth))
{
var unmarshaller = BoolUnmarshaller.Instance;
response.Truncated = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
开发者ID:aws,项目名称:aws-sdk-net,代码行数:35,代码来源:ListGrantsResponseUnmarshaller.cs
示例20: 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)
{
GetSampledRequestsResponse response = new GetSampledRequestsResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("PopulationSize", targetDepth))
{
var unmarshaller = LongUnmarshaller.Instance;
response.PopulationSize = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("SampledRequests", targetDepth))
{
var unmarshaller = new ListUnmarshaller<SampledHTTPRequest, SampledHTTPRequestUnmarshaller>(SampledHTTPRequestUnmarshaller.Instance);
response.SampledRequests = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("TimeWindow", targetDepth))
{
var unmarshaller = TimeWindowUnmarshaller.Instance;
response.TimeWindow = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
开发者ID:rajdotnet,项目名称:aws-sdk-net,代码行数:35,代码来源:GetSampledRequestsResponseUnmarshaller.cs
注:本文中的ListUnmarshaller类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论