public static ModifyInstanceResponse Unmarshall(UnmarshallerContext _ctx)
        {
            ModifyInstanceResponse modifyInstanceResponse = new ModifyInstanceResponse();

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

            ModifyInstanceResponse.ModifyInstance_Instance instance = new ModifyInstanceResponse.ModifyInstance_Instance();
            instance.CallCenterInstanceId      = _ctx.StringValue("ModifyInstance.Instance.CallCenterInstanceId");
            instance.CreationTime              = _ctx.LongValue("ModifyInstance.Instance.CreationTime");
            instance.InstanceDescription       = _ctx.StringValue("ModifyInstance.Instance.InstanceDescription");
            instance.InstanceId                = _ctx.StringValue("ModifyInstance.Instance.InstanceId");
            instance.InstanceName              = _ctx.StringValue("ModifyInstance.Instance.InstanceName");
            instance.MaxConcurrentConversation = _ctx.IntegerValue("ModifyInstance.Instance.MaxConcurrentConversation");
            instance.Owner          = _ctx.StringValue("ModifyInstance.Instance.Owner");
            instance.NluServiceType = _ctx.StringValue("ModifyInstance.Instance.NluServiceType");

            ModifyInstanceResponse.ModifyInstance_Instance.ModifyInstance_NluProfile nluProfile = new ModifyInstanceResponse.ModifyInstance_Instance.ModifyInstance_NluProfile();
            nluProfile.Endpoint             = _ctx.StringValue("ModifyInstance.Instance.NluProfile.Endpoint");
            nluProfile.AccessKey            = _ctx.StringValue("ModifyInstance.Instance.NluProfile.AccessKey");
            nluProfile.SecretKey            = _ctx.StringValue("ModifyInstance.Instance.NluProfile.SecretKey");
            instance.NluProfile             = nluProfile;
            modifyInstanceResponse.Instance = instance;

            return(modifyInstanceResponse);
        }
Пример #2
0
        public static ModifyInstanceResponse Unmarshall(UnmarshallerContext context)
        {
            ModifyInstanceResponse modifyInstanceResponse = new ModifyInstanceResponse();

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

            ModifyInstanceResponse.ModifyInstance_Instance instance = new ModifyInstanceResponse.ModifyInstance_Instance();
            instance.InstanceId                = context.StringValue("ModifyInstance.Instance.InstanceId");
            instance.InstanceName              = context.StringValue("ModifyInstance.Instance.InstanceName");
            instance.InstanceDescription       = context.StringValue("ModifyInstance.Instance.InstanceDescription");
            instance.MaxConcurrentConversation = context.IntegerValue("ModifyInstance.Instance.MaxConcurrentConversation");
            instance.Owner                  = context.StringValue("ModifyInstance.Instance.Owner");
            instance.CreationTime           = context.LongValue("ModifyInstance.Instance.CreationTime");
            instance.CallCenterInstanceId   = context.StringValue("ModifyInstance.Instance.CallCenterInstanceId");
            modifyInstanceResponse.Instance = instance;

            return(modifyInstanceResponse);
        }