public static ListTemplatesResponse Unmarshall(UnmarshallerContext _ctx) { ListTemplatesResponse listTemplatesResponse = new ListTemplatesResponse(); listTemplatesResponse.HttpResponse = _ctx.HttpResponse; listTemplatesResponse.RequestId = _ctx.StringValue("ListTemplates.RequestId"); listTemplatesResponse.PageNumber = _ctx.IntegerValue("ListTemplates.PageNumber"); listTemplatesResponse.PageSize = _ctx.IntegerValue("ListTemplates.PageSize"); listTemplatesResponse.TotalCount = _ctx.LongValue("ListTemplates.TotalCount"); listTemplatesResponse.TotalAmount = _ctx.LongValue("ListTemplates.TotalAmount"); List <ListTemplatesResponse.ListTemplates_Template> listTemplatesResponse_templates = new List <ListTemplatesResponse.ListTemplates_Template>(); for (int i = 0; i < _ctx.Length("ListTemplates.Templates.Length"); i++) { ListTemplatesResponse.ListTemplates_Template template = new ListTemplatesResponse.ListTemplates_Template(); template.TemplateId = _ctx.StringValue("ListTemplates.Templates[" + i + "].TemplateId"); template.TemplateName = _ctx.StringValue("ListTemplates.Templates[" + i + "].TemplateName"); template.Type = _ctx.IntegerValue("ListTemplates.Templates[" + i + "].Type"); template.IsDefault = _ctx.BooleanValue("ListTemplates.Templates[" + i + "].IsDefault"); template.CreateTime = _ctx.StringValue("ListTemplates.Templates[" + i + "].CreateTime"); template.UpdateTime = _ctx.StringValue("ListTemplates.Templates[" + i + "].UpdateTime"); listTemplatesResponse_templates.Add(template); } listTemplatesResponse.Templates = listTemplatesResponse_templates; return(listTemplatesResponse); }
public static ListTemplatesResponse Unmarshall(UnmarshallerContext context) { ListTemplatesResponse listTemplatesResponse = new ListTemplatesResponse(); listTemplatesResponse.HttpResponse = context.HttpResponse; listTemplatesResponse.RequestId = context.StringValue("ListTemplates.RequestId"); listTemplatesResponse.MaxResults = context.IntegerValue("ListTemplates.MaxResults"); listTemplatesResponse.NextToken = context.StringValue("ListTemplates.NextToken"); List <ListTemplatesResponse.ListTemplates_Template> listTemplatesResponse_templates = new List <ListTemplatesResponse.ListTemplates_Template>(); for (int i = 0; i < context.Length("ListTemplates.Templates.Length"); i++) { ListTemplatesResponse.ListTemplates_Template template = new ListTemplatesResponse.ListTemplates_Template(); template.TemplateName = context.StringValue("ListTemplates.Templates[" + i + "].TemplateName"); template.TemplateId = context.StringValue("ListTemplates.Templates[" + i + "].TemplateId"); template.CreatedDate = context.StringValue("ListTemplates.Templates[" + i + "].CreatedDate"); template.CreatedBy = context.StringValue("ListTemplates.Templates[" + i + "].CreatedBy"); template.UpdatedDate = context.StringValue("ListTemplates.Templates[" + i + "].UpdatedDate"); template.UpdatedBy = context.StringValue("ListTemplates.Templates[" + i + "].UpdatedBy"); template.Hash = context.StringValue("ListTemplates.Templates[" + i + "].Hash"); template.Description = context.StringValue("ListTemplates.Templates[" + i + "].Description"); template.ShareType = context.StringValue("ListTemplates.Templates[" + i + "].ShareType"); template.TemplateFormat = context.StringValue("ListTemplates.Templates[" + i + "].TemplateFormat"); template.TemplateVersion = context.StringValue("ListTemplates.Templates[" + i + "].TemplateVersion"); template.TotalExecutionCount = context.IntegerValue("ListTemplates.Templates[" + i + "].TotalExecutionCount"); template.Popularity = context.IntegerValue("ListTemplates.Templates[" + i + "].Popularity"); listTemplatesResponse_templates.Add(template); } listTemplatesResponse.Templates = listTemplatesResponse_templates; return(listTemplatesResponse); }
public static ListTemplatesResponse Unmarshall(UnmarshallerContext context) { ListTemplatesResponse listTemplatesResponse = new ListTemplatesResponse(); listTemplatesResponse.HttpResponse = context.HttpResponse; listTemplatesResponse.HttpStatusCode = context.IntegerValue("ListTemplates.HttpStatusCode"); listTemplatesResponse.PageNumber = context.IntegerValue("ListTemplates.PageNumber"); listTemplatesResponse.PageSize = context.IntegerValue("ListTemplates.PageSize"); listTemplatesResponse.RequestId = context.StringValue("ListTemplates.RequestId"); listTemplatesResponse.Success = context.BooleanValue("ListTemplates.Success"); listTemplatesResponse.TotalCount = context.IntegerValue("ListTemplates.TotalCount"); List <ListTemplatesResponse.ListTemplates_Template> listTemplatesResponse_templates = new List <ListTemplatesResponse.ListTemplates_Template>(); for (int i = 0; i < context.Length("ListTemplates.Templates.Length"); i++) { ListTemplatesResponse.ListTemplates_Template template = new ListTemplatesResponse.ListTemplates_Template(); template.CreateTime = context.StringValue("ListTemplates.Templates[" + i + "].CreateTime"); template.Description = context.StringValue("ListTemplates.Templates[" + i + "].Description"); template.TemplateId = context.StringValue("ListTemplates.Templates[" + i + "].TemplateId"); template.TemplateName = context.StringValue("ListTemplates.Templates[" + i + "].TemplateName"); template.UpdateTime = context.StringValue("ListTemplates.Templates[" + i + "].UpdateTime"); listTemplatesResponse_templates.Add(template); } listTemplatesResponse.Templates = listTemplatesResponse_templates; return(listTemplatesResponse); }
public static ListTemplatesResponse Unmarshall(UnmarshallerContext _ctx) { ListTemplatesResponse listTemplatesResponse = new ListTemplatesResponse(); listTemplatesResponse.HttpResponse = _ctx.HttpResponse; listTemplatesResponse.PageNumber = _ctx.IntegerValue("ListTemplates.PageNumber"); listTemplatesResponse.PageSize = _ctx.IntegerValue("ListTemplates.PageSize"); listTemplatesResponse.RequestId = _ctx.StringValue("ListTemplates.RequestId"); listTemplatesResponse.TotalCount = _ctx.IntegerValue("ListTemplates.TotalCount"); List <ListTemplatesResponse.ListTemplates_Template> listTemplatesResponse_templates = new List <ListTemplatesResponse.ListTemplates_Template>(); for (int i = 0; i < _ctx.Length("ListTemplates.Templates.Length"); i++) { ListTemplatesResponse.ListTemplates_Template template = new ListTemplatesResponse.ListTemplates_Template(); template.CreateTime = _ctx.StringValue("ListTemplates.Templates[" + i + "].CreateTime"); template.Description = _ctx.StringValue("ListTemplates.Templates[" + i + "].Description"); template.TemplateId = _ctx.StringValue("ListTemplates.Templates[" + i + "].TemplateId"); template.TemplateName = _ctx.StringValue("ListTemplates.Templates[" + i + "].TemplateName"); template.UpdateTime = _ctx.StringValue("ListTemplates.Templates[" + i + "].UpdateTime"); template.TemplateVersion = _ctx.StringValue("ListTemplates.Templates[" + i + "].TemplateVersion"); template.ShareType = _ctx.StringValue("ListTemplates.Templates[" + i + "].ShareType"); template.OwnerId = _ctx.StringValue("ListTemplates.Templates[" + i + "].OwnerId"); template.TemplateARN = _ctx.StringValue("ListTemplates.Templates[" + i + "].TemplateARN"); listTemplatesResponse_templates.Add(template); } listTemplatesResponse.Templates = listTemplatesResponse_templates; return(listTemplatesResponse); }