public static QueryContactTemplateResponse Unmarshall(UnmarshallerContext context)
        {
            QueryContactTemplateResponse queryContactTemplateResponse = new QueryContactTemplateResponse();

            queryContactTemplateResponse.HttpResponse   = context.HttpResponse;
            queryContactTemplateResponse.RequestId      = context.StringValue("QueryContactTemplate.RequestId");
            queryContactTemplateResponse.TotalItemNum   = context.IntegerValue("QueryContactTemplate.TotalItemNum");
            queryContactTemplateResponse.CurrentPageNum = context.IntegerValue("QueryContactTemplate.CurrentPageNum");
            queryContactTemplateResponse.TotalPageNum   = context.IntegerValue("QueryContactTemplate.TotalPageNum");
            queryContactTemplateResponse.PageSize       = context.IntegerValue("QueryContactTemplate.PageSize");
            queryContactTemplateResponse.PrePage        = context.BooleanValue("QueryContactTemplate.PrePage");
            queryContactTemplateResponse.NextPage       = context.BooleanValue("QueryContactTemplate.NextPage");

            List <QueryContactTemplateResponse.QueryContactTemplate_ContactTemplate> queryContactTemplateResponse_contactTemplates = new List <QueryContactTemplateResponse.QueryContactTemplate_ContactTemplate>();

            for (int i = 0; i < context.Length("QueryContactTemplate.ContactTemplates.Length"); i++)
            {
                QueryContactTemplateResponse.QueryContactTemplate_ContactTemplate contactTemplate = new QueryContactTemplateResponse.QueryContactTemplate_ContactTemplate();
                contactTemplate.ContactTemplateId = context.LongValue("QueryContactTemplate.ContactTemplates[" + i + "].ContactTemplateId");
                contactTemplate.CreateTime        = context.StringValue("QueryContactTemplate.ContactTemplates[" + i + "].CreateTime");
                contactTemplate.UpdateTime        = context.StringValue("QueryContactTemplate.ContactTemplates[" + i + "].UpdateTime");
                contactTemplate.UserId            = context.StringValue("QueryContactTemplate.ContactTemplates[" + i + "].UserId");
                contactTemplate.RegType           = context.StringValue("QueryContactTemplate.ContactTemplates[" + i + "].RegType");
                contactTemplate.DefaultTemplate   = context.BooleanValue("QueryContactTemplate.ContactTemplates[" + i + "].DefaultTemplate");
                contactTemplate.AuditStatus       = context.StringValue("QueryContactTemplate.ContactTemplates[" + i + "].AuditStatus");
                contactTemplate.CName             = context.StringValue("QueryContactTemplate.ContactTemplates[" + i + "].CName");
                contactTemplate.EName             = context.StringValue("QueryContactTemplate.ContactTemplates[" + i + "].EName");
                contactTemplate.CCompany          = context.StringValue("QueryContactTemplate.ContactTemplates[" + i + "].CCompany");
                contactTemplate.ECompany          = context.StringValue("QueryContactTemplate.ContactTemplates[" + i + "].ECompany");
                contactTemplate.CCountry          = context.StringValue("QueryContactTemplate.ContactTemplates[" + i + "].CCountry");
                contactTemplate.CProvince         = context.StringValue("QueryContactTemplate.ContactTemplates[" + i + "].CProvince");
                contactTemplate.EProvince         = context.StringValue("QueryContactTemplate.ContactTemplates[" + i + "].EProvince");
                contactTemplate.CCity             = context.StringValue("QueryContactTemplate.ContactTemplates[" + i + "].CCity");
                contactTemplate.ECity             = context.StringValue("QueryContactTemplate.ContactTemplates[" + i + "].ECity");
                contactTemplate.CVenu             = context.StringValue("QueryContactTemplate.ContactTemplates[" + i + "].CVenu");
                contactTemplate.EVenu             = context.StringValue("QueryContactTemplate.ContactTemplates[" + i + "].EVenu");
                contactTemplate.Email             = context.StringValue("QueryContactTemplate.ContactTemplates[" + i + "].Email");
                contactTemplate.TelArea           = context.StringValue("QueryContactTemplate.ContactTemplates[" + i + "].TelArea");
                contactTemplate.PostalCode        = context.StringValue("QueryContactTemplate.ContactTemplates[" + i + "].PostalCode");
                contactTemplate.TelMain           = context.StringValue("QueryContactTemplate.ContactTemplates[" + i + "].TelMain");
                contactTemplate.TelExt            = context.StringValue("QueryContactTemplate.ContactTemplates[" + i + "].TelExt");

                queryContactTemplateResponse_contactTemplates.Add(contactTemplate);
            }
            queryContactTemplateResponse.ContactTemplates = queryContactTemplateResponse_contactTemplates;

            return(queryContactTemplateResponse);
        }
        public static QueryContactTemplateResponse Unmarshall(UnmarshallerContext context)
        {
            QueryContactTemplateResponse queryContactTemplateResponse = new QueryContactTemplateResponse()
            {
                HttpResponse = context.HttpResponse,
                RequestId    = context.StringValue("QueryContactTemplate.RequestId")
            };
            List <QueryContactTemplateResponse.ContactTemplate> contactTemplates = new List <QueryContactTemplateResponse.ContactTemplate>();

            for (int i = 0; i < context.Length("QueryContactTemplate.ContactTemplates.Length"); i++)
            {
                QueryContactTemplateResponse.ContactTemplate contactTemplate = new QueryContactTemplateResponse.ContactTemplate()
                {
                    ContactTemplateId = context.LongValue($"QueryContactTemplate.ContactTemplates[{i}].ContactTemplateId"),
                    CreateTime        = context.StringValue($"QueryContactTemplate.ContactTemplates[{i}].CreateTime"),
                    UpdateTime        = context.StringValue($"QueryContactTemplate.ContactTemplates[{i}].UpdateTime"),
                    UserId            = context.StringValue($"QueryContactTemplate.ContactTemplates[{i}].UserId"),
                    RegType           = context.StringValue($"QueryContactTemplate.ContactTemplates[{i}].RegType"),
                    DefaultTemplate   = context.BooleanValue($"QueryContactTemplate.ContactTemplates[{i}].DefaultTemplate"),
                    AuditStatus       = context.StringValue($"QueryContactTemplate.ContactTemplates[{i}].AuditStatus"),
                    CName             = context.StringValue($"QueryContactTemplate.ContactTemplates[{i}].CName"),
                    EName             = context.StringValue($"QueryContactTemplate.ContactTemplates[{i}].EName"),
                    CCompany          = context.StringValue($"QueryContactTemplate.ContactTemplates[{i}].CCompany"),
                    ECompany          = context.StringValue($"QueryContactTemplate.ContactTemplates[{i}].ECompany"),
                    CCountry          = context.StringValue($"QueryContactTemplate.ContactTemplates[{i}].CCountry"),
                    CProvince         = context.StringValue($"QueryContactTemplate.ContactTemplates[{i}].CProvince"),
                    EProvince         = context.StringValue($"QueryContactTemplate.ContactTemplates[{i}].EProvince"),
                    CCity             = context.StringValue($"QueryContactTemplate.ContactTemplates[{i}].CCity"),
                    ECity             = context.StringValue($"QueryContactTemplate.ContactTemplates[{i}].ECity"),
                    CVenu             = context.StringValue($"QueryContactTemplate.ContactTemplates[{i}].CVenu"),
                    EVenu             = context.StringValue($"QueryContactTemplate.ContactTemplates[{i}].EVenu"),
                    Email             = context.StringValue($"QueryContactTemplate.ContactTemplates[{i}].Email"),
                    TelArea           = context.StringValue($"QueryContactTemplate.ContactTemplates[{i}].TelArea"),
                    PostalCode        = context.StringValue($"QueryContactTemplate.ContactTemplates[{i}].PostalCode"),
                    TelMain           = context.StringValue($"QueryContactTemplate.ContactTemplates[{i}].TelMain"),
                    TelExt            = context.StringValue($"QueryContactTemplate.ContactTemplates[{i}].TelExt")
                };
                contactTemplates.Add(contactTemplate);
            }
            queryContactTemplateResponse.ContactTemplates = contactTemplates;

            return(queryContactTemplateResponse);
        }