public static GetProjectInfoResponse Unmarshall(UnmarshallerContext context)
        {
            GetProjectInfoResponse getProjectInfoResponse = new GetProjectInfoResponse();

            getProjectInfoResponse.HttpResponse = context.HttpResponse;
            getProjectInfoResponse.Code         = context.IntegerValue("GetProjectInfo.Code");
            getProjectInfoResponse.Message      = context.StringValue("GetProjectInfo.Message");
            getProjectInfoResponse.RequestId    = context.StringValue("GetProjectInfo.RequestId");

            GetProjectInfoResponse.GetProjectInfo_Data data = new GetProjectInfoResponse.GetProjectInfo_Data();
            data.Total = context.IntegerValue("GetProjectInfo.Data.Total");

            List <GetProjectInfoResponse.GetProjectInfo_Data.GetProjectInfo_Instance> data_detail = new List <GetProjectInfoResponse.GetProjectInfo_Data.GetProjectInfo_Instance>();

            for (int i = 0; i < context.Length("GetProjectInfo.Data.Detail.Length"); i++)
            {
                GetProjectInfoResponse.GetProjectInfo_Data.GetProjectInfo_Instance instance = new GetProjectInfoResponse.GetProjectInfo_Data.GetProjectInfo_Instance();
                instance.Project     = context.StringValue("GetProjectInfo.Data.Detail[" + i + "].Project");
                instance.InstanceId  = context.StringValue("GetProjectInfo.Data.Detail[" + i + "].InstanceId");
                instance.Status      = context.StringValue("GetProjectInfo.Data.Detail[" + i + "].Status");
                instance.UserAccount = context.StringValue("GetProjectInfo.Data.Detail[" + i + "].UserAccount");
                instance.NickName    = context.StringValue("GetProjectInfo.Data.Detail[" + i + "].NickName");
                instance.Cluster     = context.StringValue("GetProjectInfo.Data.Detail[" + i + "].Cluster");
                instance.RunTime     = context.StringValue("GetProjectInfo.Data.Detail[" + i + "].RunTime");

                data_detail.Add(instance);
            }
            data.Detail = data_detail;
            getProjectInfoResponse.Data = data;

            return(getProjectInfoResponse);
        }
Ejemplo n.º 2
0
        public static GetProjectInfoResponse Unmarshall(UnmarshallerContext context)
        {
            GetProjectInfoResponse getProjectInfoResponse = new GetProjectInfoResponse();

            getProjectInfoResponse.HttpResponse = context.HttpResponse;
            getProjectInfoResponse.Successful   = context.BooleanValue("GetProjectInfo.Successful");
            getProjectInfoResponse.ErrorCode    = context.StringValue("GetProjectInfo.ErrorCode");
            getProjectInfoResponse.ErrorMsg     = context.StringValue("GetProjectInfo.ErrorMsg");
            getProjectInfoResponse.RequestId    = context.StringValue("GetProjectInfo.RequestId");

            GetProjectInfoResponse.GetProjectInfo__Object _object = new GetProjectInfoResponse.GetProjectInfo__Object();
            _object.RootCollectionId = context.StringValue("GetProjectInfo.Object.RootCollectionId");
            _object.EndDate          = context.StringValue("GetProjectInfo.Object.EndDate");
            _object.IsArchived       = context.BooleanValue("GetProjectInfo.Object.IsArchived");
            _object.ModifierId       = context.StringValue("GetProjectInfo.Object.ModifierId");
            _object.SourceId         = context.StringValue("GetProjectInfo.Object.SourceId");
            _object.Description      = context.StringValue("GetProjectInfo.Object.Description");
            _object.Py                     = context.StringValue("GetProjectInfo.Object.Py");
            _object.DefaultRoleId          = context.StringValue("GetProjectInfo.Object.DefaultRoleId");
            _object.Customfields           = context.StringValue("GetProjectInfo.Object.Customfields");
            _object.IsDeleted              = context.BooleanValue("GetProjectInfo.Object.IsDeleted");
            _object.UniqueIdPrefix         = context.StringValue("GetProjectInfo.Object.UniqueIdPrefix");
            _object.NextTaskUniqueId       = context.IntegerValue("GetProjectInfo.Object.NextTaskUniqueId");
            _object.CreatorId              = context.StringValue("GetProjectInfo.Object.CreatorId");
            _object.Logo                   = context.StringValue("GetProjectInfo.Object.Logo");
            _object.DefaultCollectionId    = context.StringValue("GetProjectInfo.Object.DefaultCollectionId");
            _object.IsSuspended            = context.BooleanValue("GetProjectInfo.Object.IsSuspended");
            _object.Visibility             = context.StringValue("GetProjectInfo.Object.Visibility");
            _object.NormalType             = context.StringValue("GetProjectInfo.Object.NormalType");
            _object.Created                = context.StringValue("GetProjectInfo.Object.Created");
            _object.OrganizationId         = context.StringValue("GetProjectInfo.Object.OrganizationId");
            _object.SortMethod             = context.StringValue("GetProjectInfo.Object.SortMethod");
            _object.Pinyin                 = context.StringValue("GetProjectInfo.Object.Pinyin");
            _object.SourceType             = context.StringValue("GetProjectInfo.Object.SourceType");
            _object.IsTemplate             = context.BooleanValue("GetProjectInfo.Object.IsTemplate");
            _object.Name                   = context.StringValue("GetProjectInfo.Object.Name");
            _object.Id                     = context.StringValue("GetProjectInfo.Object.Id");
            _object.Category               = context.StringValue("GetProjectInfo.Object.Category");
            _object.Updated                = context.StringValue("GetProjectInfo.Object.Updated");
            _object.StartDate              = context.StringValue("GetProjectInfo.Object.StartDate");
            getProjectInfoResponse._Object = _object;

            return(getProjectInfoResponse);
        }