public static ModifyPhoneNumberResponse Unmarshall(UnmarshallerContext context)
        {
            ModifyPhoneNumberResponse modifyPhoneNumberResponse = new ModifyPhoneNumberResponse();

            modifyPhoneNumberResponse.HttpResponse   = context.HttpResponse;
            modifyPhoneNumberResponse.RequestId      = context.StringValue("ModifyPhoneNumber.RequestId");
            modifyPhoneNumberResponse.Success        = context.BooleanValue("ModifyPhoneNumber.Success");
            modifyPhoneNumberResponse.Code           = context.StringValue("ModifyPhoneNumber.Code");
            modifyPhoneNumberResponse.Message        = context.StringValue("ModifyPhoneNumber.Message");
            modifyPhoneNumberResponse.HttpStatusCode = context.IntegerValue("ModifyPhoneNumber.HttpStatusCode");

            ModifyPhoneNumberResponse.ModifyPhoneNumber_PhoneNumber phoneNumber = new ModifyPhoneNumberResponse.ModifyPhoneNumber_PhoneNumber();
            phoneNumber.PhoneNumberId          = context.StringValue("ModifyPhoneNumber.PhoneNumber.PhoneNumberId");
            phoneNumber.InstanceId             = context.StringValue("ModifyPhoneNumber.PhoneNumber.InstanceId");
            phoneNumber.Number                 = context.StringValue("ModifyPhoneNumber.PhoneNumber.Number");
            phoneNumber.PhoneNumberDescription = context.StringValue("ModifyPhoneNumber.PhoneNumber.PhoneNumberDescription");
            phoneNumber.TestOnly               = context.BooleanValue("ModifyPhoneNumber.PhoneNumber.TestOnly");
            phoneNumber.RemainingTime          = context.IntegerValue("ModifyPhoneNumber.PhoneNumber.RemainingTime");
            phoneNumber.AllowOutbound          = context.BooleanValue("ModifyPhoneNumber.PhoneNumber.AllowOutbound");
            phoneNumber.Usage  = context.StringValue("ModifyPhoneNumber.PhoneNumber.Usage");
            phoneNumber.Trunks = context.IntegerValue("ModifyPhoneNumber.PhoneNumber.Trunks");

            ModifyPhoneNumberResponse.ModifyPhoneNumber_PhoneNumber.ModifyPhoneNumber_ContactFlow contactFlow = new ModifyPhoneNumberResponse.ModifyPhoneNumber_PhoneNumber.ModifyPhoneNumber_ContactFlow();
            contactFlow.ContactFlowId          = context.StringValue("ModifyPhoneNumber.PhoneNumber.ContactFlow.ContactFlowId");
            contactFlow.InstanceId             = context.StringValue("ModifyPhoneNumber.PhoneNumber.ContactFlow.InstanceId");
            contactFlow.ContactFlowName        = context.StringValue("ModifyPhoneNumber.PhoneNumber.ContactFlow.ContactFlowName");
            contactFlow.ContactFlowDescription = context.StringValue("ModifyPhoneNumber.PhoneNumber.ContactFlow.ContactFlowDescription");
            contactFlow.Type        = context.StringValue("ModifyPhoneNumber.PhoneNumber.ContactFlow.Type");
            phoneNumber.ContactFlow = contactFlow;
            modifyPhoneNumberResponse.PhoneNumber = phoneNumber;

            return(modifyPhoneNumberResponse);
        }
Exemplo n.º 2
0
        public static ModifyPhoneNumberResponse Unmarshall(UnmarshallerContext _ctx)
        {
            ModifyPhoneNumberResponse modifyPhoneNumberResponse = new ModifyPhoneNumberResponse();

            modifyPhoneNumberResponse.HttpResponse   = _ctx.HttpResponse;
            modifyPhoneNumberResponse.Code           = _ctx.StringValue("ModifyPhoneNumber.Code");
            modifyPhoneNumberResponse.HttpStatusCode = _ctx.IntegerValue("ModifyPhoneNumber.HttpStatusCode");
            modifyPhoneNumberResponse.Message        = _ctx.StringValue("ModifyPhoneNumber.Message");
            modifyPhoneNumberResponse.RequestId      = _ctx.StringValue("ModifyPhoneNumber.RequestId");

            return(modifyPhoneNumberResponse);
        }
        public static ModifyPhoneNumberResponse Unmarshall(UnmarshallerContext context)
        {
            ModifyPhoneNumberResponse modifyPhoneNumberResponse = new ModifyPhoneNumberResponse();

            modifyPhoneNumberResponse.HttpResponse   = context.HttpResponse;
            modifyPhoneNumberResponse.RequestId      = context.StringValue("ModifyPhoneNumber.RequestId");
            modifyPhoneNumberResponse.Success        = context.BooleanValue("ModifyPhoneNumber.Success");
            modifyPhoneNumberResponse.Code           = context.StringValue("ModifyPhoneNumber.Code");
            modifyPhoneNumberResponse.Message        = context.StringValue("ModifyPhoneNumber.Message");
            modifyPhoneNumberResponse.HttpStatusCode = context.IntegerValue("ModifyPhoneNumber.HttpStatusCode");

            ModifyPhoneNumberResponse.ModifyPhoneNumber_PhoneNumber phoneNumber = new ModifyPhoneNumberResponse.ModifyPhoneNumber_PhoneNumber();
            phoneNumber.PhoneNumberId          = context.StringValue("ModifyPhoneNumber.PhoneNumber.PhoneNumberId");
            phoneNumber.InstanceId             = context.StringValue("ModifyPhoneNumber.PhoneNumber.InstanceId");
            phoneNumber.Number                 = context.StringValue("ModifyPhoneNumber.PhoneNumber.Number");
            phoneNumber.PhoneNumberDescription = context.StringValue("ModifyPhoneNumber.PhoneNumber.PhoneNumberDescription");
            phoneNumber.TestOnly               = context.BooleanValue("ModifyPhoneNumber.PhoneNumber.TestOnly");
            phoneNumber.RemainingTime          = context.IntegerValue("ModifyPhoneNumber.PhoneNumber.RemainingTime");
            phoneNumber.AllowOutbound          = context.BooleanValue("ModifyPhoneNumber.PhoneNumber.AllowOutbound");
            phoneNumber.Usage  = context.StringValue("ModifyPhoneNumber.PhoneNumber.Usage");
            phoneNumber.Trunks = context.IntegerValue("ModifyPhoneNumber.PhoneNumber.Trunks");

            ModifyPhoneNumberResponse.ModifyPhoneNumber_PhoneNumber.ModifyPhoneNumber_ContactFlow contactFlow = new ModifyPhoneNumberResponse.ModifyPhoneNumber_PhoneNumber.ModifyPhoneNumber_ContactFlow();
            contactFlow.ContactFlowId          = context.StringValue("ModifyPhoneNumber.PhoneNumber.ContactFlow.ContactFlowId");
            contactFlow.InstanceId             = context.StringValue("ModifyPhoneNumber.PhoneNumber.ContactFlow.InstanceId");
            contactFlow.ContactFlowName        = context.StringValue("ModifyPhoneNumber.PhoneNumber.ContactFlow.ContactFlowName");
            contactFlow.ContactFlowDescription = context.StringValue("ModifyPhoneNumber.PhoneNumber.ContactFlow.ContactFlowDescription");
            contactFlow.Type        = context.StringValue("ModifyPhoneNumber.PhoneNumber.ContactFlow.Type");
            phoneNumber.ContactFlow = contactFlow;

            List <ModifyPhoneNumberResponse.ModifyPhoneNumber_PhoneNumber.ModifyPhoneNumber_SkillGroup> phoneNumber_skillGroups = new List <ModifyPhoneNumberResponse.ModifyPhoneNumber_PhoneNumber.ModifyPhoneNumber_SkillGroup>();

            for (int i = 0; i < context.Length("ModifyPhoneNumber.PhoneNumber.SkillGroups.Length"); i++)
            {
                ModifyPhoneNumberResponse.ModifyPhoneNumber_PhoneNumber.ModifyPhoneNumber_SkillGroup skillGroup = new ModifyPhoneNumberResponse.ModifyPhoneNumber_PhoneNumber.ModifyPhoneNumber_SkillGroup();
                skillGroup.SkillGroupId   = context.StringValue("ModifyPhoneNumber.PhoneNumber.SkillGroups[" + i + "].SkillGroupId");
                skillGroup.SkillGroupName = context.StringValue("ModifyPhoneNumber.PhoneNumber.SkillGroups[" + i + "].SkillGroupName");

                phoneNumber_skillGroups.Add(skillGroup);
            }
            phoneNumber.SkillGroups = phoneNumber_skillGroups;
            modifyPhoneNumberResponse.PhoneNumber = phoneNumber;

            return(modifyPhoneNumberResponse);
        }