public static CreateJobGroupResponse Unmarshall(UnmarshallerContext context)
        {
            CreateJobGroupResponse createJobGroupResponse = new CreateJobGroupResponse();

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

            CreateJobGroupResponse.CreateJobGroup_JobGroup jobGroup = new CreateJobGroupResponse.CreateJobGroup_JobGroup();
            jobGroup.JobGroupId          = context.StringValue("CreateJobGroup.JobGroup.JobGroupId");
            jobGroup.JobGroupName        = context.StringValue("CreateJobGroup.JobGroup.JobGroupName");
            jobGroup.JobGroupDescription = context.StringValue("CreateJobGroup.JobGroup.JobGroupDescription");
            jobGroup.ScenarioId          = context.StringValue("CreateJobGroup.JobGroup.ScenarioId");
            jobGroup.JobFilePath         = context.StringValue("CreateJobGroup.JobGroup.JobFilePath");
            jobGroup.CreationTime        = context.LongValue("CreateJobGroup.JobGroup.CreationTime");

            List <string> jobGroup_callingNumbers = new List <string>();

            for (int i = 0; i < context.Length("CreateJobGroup.JobGroup.CallingNumbers.Length"); i++)
            {
                jobGroup_callingNumbers.Add(context.StringValue("CreateJobGroup.JobGroup.CallingNumbers[" + i + "]"));
            }
            jobGroup.CallingNumbers = jobGroup_callingNumbers;

            CreateJobGroupResponse.CreateJobGroup_JobGroup.CreateJobGroup_Strategy strategy = new CreateJobGroupResponse.CreateJobGroup_JobGroup.CreateJobGroup_Strategy();
            strategy.StrategyId          = context.StringValue("CreateJobGroup.JobGroup.Strategy.StrategyId");
            strategy.StrategyName        = context.StringValue("CreateJobGroup.JobGroup.Strategy.StrategyName");
            strategy.StrategyDescription = context.StringValue("CreateJobGroup.JobGroup.Strategy.StrategyDescription");
            strategy.Type               = context.StringValue("CreateJobGroup.JobGroup.Strategy.Type");
            strategy.StartTime          = context.LongValue("CreateJobGroup.JobGroup.Strategy.StartTime");
            strategy.EndTime            = context.LongValue("CreateJobGroup.JobGroup.Strategy.EndTime");
            strategy.RepeatBy           = context.StringValue("CreateJobGroup.JobGroup.Strategy.RepeatBy");
            strategy.MaxAttemptsPerDay  = context.IntegerValue("CreateJobGroup.JobGroup.Strategy.MaxAttemptsPerDay");
            strategy.MinAttemptInterval = context.IntegerValue("CreateJobGroup.JobGroup.Strategy.MinAttemptInterval");
            strategy.Customized         = context.StringValue("CreateJobGroup.JobGroup.Strategy.Customized");
            strategy.RoutingStrategy    = context.StringValue("CreateJobGroup.JobGroup.Strategy.RoutingStrategy");
            strategy.FollowUpStrategy   = context.StringValue("CreateJobGroup.JobGroup.Strategy.FollowUpStrategy");
            strategy.IsTemplate         = context.BooleanValue("CreateJobGroup.JobGroup.Strategy.IsTemplate");

            List <string> strategy_repeatDays = new List <string>();

            for (int i = 0; i < context.Length("CreateJobGroup.JobGroup.Strategy.RepeatDays.Length"); i++)
            {
                strategy_repeatDays.Add(context.StringValue("CreateJobGroup.JobGroup.Strategy.RepeatDays[" + i + "]"));
            }
            strategy.RepeatDays = strategy_repeatDays;

            List <CreateJobGroupResponse.CreateJobGroup_JobGroup.CreateJobGroup_Strategy.CreateJobGroup_TimeFrame> strategy_workingTime = new List <CreateJobGroupResponse.CreateJobGroup_JobGroup.CreateJobGroup_Strategy.CreateJobGroup_TimeFrame>();

            for (int i = 0; i < context.Length("CreateJobGroup.JobGroup.Strategy.WorkingTime.Length"); i++)
            {
                CreateJobGroupResponse.CreateJobGroup_JobGroup.CreateJobGroup_Strategy.CreateJobGroup_TimeFrame timeFrame = new CreateJobGroupResponse.CreateJobGroup_JobGroup.CreateJobGroup_Strategy.CreateJobGroup_TimeFrame();
                timeFrame.From = context.StringValue("CreateJobGroup.JobGroup.Strategy.WorkingTime[" + i + "].From");
                timeFrame.To   = context.StringValue("CreateJobGroup.JobGroup.Strategy.WorkingTime[" + i + "].To");

                strategy_workingTime.Add(timeFrame);
            }
            strategy.WorkingTime            = strategy_workingTime;
            jobGroup.Strategy               = strategy;
            createJobGroupResponse.JobGroup = jobGroup;

            return(createJobGroupResponse);
        }
        public static CreateJobGroupResponse Unmarshall(UnmarshallerContext _ctx)
        {
            CreateJobGroupResponse createJobGroupResponse = new CreateJobGroupResponse();

            createJobGroupResponse.HttpResponse   = _ctx.HttpResponse;
            createJobGroupResponse.Code           = _ctx.StringValue("CreateJobGroup.Code");
            createJobGroupResponse.HttpStatusCode = _ctx.IntegerValue("CreateJobGroup.HttpStatusCode");
            createJobGroupResponse.Message        = _ctx.StringValue("CreateJobGroup.Message");
            createJobGroupResponse.RequestId      = _ctx.StringValue("CreateJobGroup.RequestId");
            createJobGroupResponse.Success        = _ctx.BooleanValue("CreateJobGroup.Success");

            CreateJobGroupResponse.CreateJobGroup_JobGroup jobGroup = new CreateJobGroupResponse.CreateJobGroup_JobGroup();
            jobGroup.CreationTime         = _ctx.LongValue("CreateJobGroup.JobGroup.CreationTime");
            jobGroup.JobDataParsingTaskId = _ctx.StringValue("CreateJobGroup.JobGroup.JobDataParsingTaskId");
            jobGroup.JobFilePath          = _ctx.StringValue("CreateJobGroup.JobGroup.JobFilePath");
            jobGroup.JobGroupDescription  = _ctx.StringValue("CreateJobGroup.JobGroup.JobGroupDescription");
            jobGroup.JobGroupId           = _ctx.StringValue("CreateJobGroup.JobGroup.JobGroupId");
            jobGroup.JobGroupName         = _ctx.StringValue("CreateJobGroup.JobGroup.JobGroupName");
            jobGroup.ModifyTime           = _ctx.StringValue("CreateJobGroup.JobGroup.ModifyTime");
            jobGroup.ScenarioId           = _ctx.StringValue("CreateJobGroup.JobGroup.ScenarioId");
            jobGroup.ScriptName           = _ctx.StringValue("CreateJobGroup.JobGroup.ScriptName");
            jobGroup.ScriptVersion        = _ctx.StringValue("CreateJobGroup.JobGroup.ScriptVersion");
            jobGroup.Status = _ctx.StringValue("CreateJobGroup.JobGroup.Status");

            List <string> jobGroup_callingNumbers = new List <string>();

            for (int i = 0; i < _ctx.Length("CreateJobGroup.JobGroup.CallingNumbers.Length"); i++)
            {
                jobGroup_callingNumbers.Add(_ctx.StringValue("CreateJobGroup.JobGroup.CallingNumbers[" + i + "]"));
            }
            jobGroup.CallingNumbers = jobGroup_callingNumbers;

            CreateJobGroupResponse.CreateJobGroup_JobGroup.CreateJobGroup_ExportProgress exportProgress = new CreateJobGroupResponse.CreateJobGroup_JobGroup.CreateJobGroup_ExportProgress();
            exportProgress.FileHttpUrl = _ctx.StringValue("CreateJobGroup.JobGroup.ExportProgress.FileHttpUrl");
            exportProgress.Progress    = _ctx.StringValue("CreateJobGroup.JobGroup.ExportProgress.Progress");
            exportProgress.Status      = _ctx.StringValue("CreateJobGroup.JobGroup.ExportProgress.Status");
            jobGroup.ExportProgress    = exportProgress;

            CreateJobGroupResponse.CreateJobGroup_JobGroup.CreateJobGroup_Strategy strategy = new CreateJobGroupResponse.CreateJobGroup_JobGroup.CreateJobGroup_Strategy();
            strategy.Customized          = _ctx.StringValue("CreateJobGroup.JobGroup.Strategy.Customized");
            strategy.EndTime             = _ctx.LongValue("CreateJobGroup.JobGroup.Strategy.EndTime");
            strategy.FollowUpStrategy    = _ctx.StringValue("CreateJobGroup.JobGroup.Strategy.FollowUpStrategy");
            strategy.IsTemplate          = _ctx.BooleanValue("CreateJobGroup.JobGroup.Strategy.IsTemplate");
            strategy.MaxAttemptsPerDay   = _ctx.IntegerValue("CreateJobGroup.JobGroup.Strategy.MaxAttemptsPerDay");
            strategy.MinAttemptInterval  = _ctx.IntegerValue("CreateJobGroup.JobGroup.Strategy.MinAttemptInterval");
            strategy.RepeatBy            = _ctx.StringValue("CreateJobGroup.JobGroup.Strategy.RepeatBy");
            strategy.RoutingStrategy     = _ctx.StringValue("CreateJobGroup.JobGroup.Strategy.RoutingStrategy");
            strategy.StartTime           = _ctx.LongValue("CreateJobGroup.JobGroup.Strategy.StartTime");
            strategy.StrategyDescription = _ctx.StringValue("CreateJobGroup.JobGroup.Strategy.StrategyDescription");
            strategy.StrategyId          = _ctx.StringValue("CreateJobGroup.JobGroup.Strategy.StrategyId");
            strategy.StrategyName        = _ctx.StringValue("CreateJobGroup.JobGroup.Strategy.StrategyName");
            strategy.Type = _ctx.StringValue("CreateJobGroup.JobGroup.Strategy.Type");

            List <string> strategy_repeatDays = new List <string>();

            for (int i = 0; i < _ctx.Length("CreateJobGroup.JobGroup.Strategy.RepeatDays.Length"); i++)
            {
                strategy_repeatDays.Add(_ctx.StringValue("CreateJobGroup.JobGroup.Strategy.RepeatDays[" + i + "]"));
            }
            strategy.RepeatDays = strategy_repeatDays;

            List <CreateJobGroupResponse.CreateJobGroup_JobGroup.CreateJobGroup_Strategy.CreateJobGroup_TimeFrame> strategy_workingTime = new List <CreateJobGroupResponse.CreateJobGroup_JobGroup.CreateJobGroup_Strategy.CreateJobGroup_TimeFrame>();

            for (int i = 0; i < _ctx.Length("CreateJobGroup.JobGroup.Strategy.WorkingTime.Length"); i++)
            {
                CreateJobGroupResponse.CreateJobGroup_JobGroup.CreateJobGroup_Strategy.CreateJobGroup_TimeFrame timeFrame = new CreateJobGroupResponse.CreateJobGroup_JobGroup.CreateJobGroup_Strategy.CreateJobGroup_TimeFrame();
                timeFrame.BeginTime = _ctx.StringValue("CreateJobGroup.JobGroup.Strategy.WorkingTime[" + i + "].BeginTime");
                timeFrame.EndTime   = _ctx.StringValue("CreateJobGroup.JobGroup.Strategy.WorkingTime[" + i + "].EndTime");

                strategy_workingTime.Add(timeFrame);
            }
            strategy.WorkingTime            = strategy_workingTime;
            jobGroup.Strategy               = strategy;
            createJobGroupResponse.JobGroup = jobGroup;

            return(createJobGroupResponse);
        }