예제 #1
0
파일: Attachment.cs 프로젝트: Kuzq/gitter
 internal Attachment(RedmineServiceContext context, XmlNode node)
     : base(context, node)
 {
     _fileName		= RedmineUtility.LoadString(node[FileNameProperty.XmlNodeName]);
     _fileSize		= RedmineUtility.LoadInt(node[FileSizeProperty.XmlNodeName]);
     _contentType	= RedmineUtility.LoadString(node[ContentTypeProperty.XmlNodeName]);
     _description	= RedmineUtility.LoadString(node[DescriptionProperty.XmlNodeName]);
     _contentUrl		= RedmineUtility.LoadString(node[ContentUrlProperty.XmlNodeName]);
     _author			= RedmineUtility.LoadNamedObject(node[AuthorProperty.XmlNodeName], context.Users.Lookup);
     _createdOn		= RedmineUtility.LoadDateForSure(node[CreatedOnProperty.XmlNodeName]);
 }
예제 #2
0
파일: Issue.cs 프로젝트: Kuzq/gitter
        internal Issue(RedmineServiceContext context, XmlNode node)
            : base(context, node)
        {
            _parent			= RedmineUtility.LoadObject(node[ParentProperty.XmlNodeName],				context.Issues.Lookup);

            _project		= RedmineUtility.LoadNamedObject(node[ProjectProperty.XmlNodeName],			context.Projects.Lookup);
            _tracker		= RedmineUtility.LoadNamedObject(node[TrackerProperty.XmlNodeName],			context.Trackers.Lookup);
            _status			= RedmineUtility.LoadNamedObject(node[StatusProperty.XmlNodeName],			context.IssueStatuses.Lookup);
            _priority		= RedmineUtility.LoadNamedObject(node[PriorityProperty.XmlNodeName],		context.IssuePriorities.Lookup);

            _author			= RedmineUtility.LoadNamedObject(node[AuthorProperty.XmlNodeName],			context.Users.Lookup);
            _assignedTo		= RedmineUtility.LoadNamedObject(node[AssignedToProperty.XmlNodeName],		context.Users.Lookup);

            _category		= RedmineUtility.LoadNamedObject(node[CategoryProperty.XmlNodeName],		context.IssueCategories.Lookup);
            _fixedVersion	= RedmineUtility.LoadNamedObject(node[FixedVersionProperty.XmlNodeName],	context.ProjectVersions.Lookup);

            _subject		= RedmineUtility.LoadString(node[SubjectProperty.XmlNodeName]);
            _description	= RedmineUtility.LoadString(node[DescriptionProperty.XmlNodeName]);

            _startDate		= RedmineUtility.LoadDate(node[StartDateProperty.XmlNodeName]);
            _dueDate		= RedmineUtility.LoadDate(node[DueDateProperty.XmlNodeName]);

            _doneRatio		= RedmineUtility.LoadDouble(node[DoneRatioProperty.XmlNodeName]);
            _estimatedHours	= RedmineUtility.LoadDouble(node[EstimatedHoursProperty.XmlNodeName]);

            _customFields	= RedmineUtility.LoadCustomFields(node[CustomFieldsProperty.XmlNodeName],	context.CustomFields.Lookup);

            _createdOn		= RedmineUtility.LoadDateForSure(node[CreatedOnProperty.XmlNodeName]);
            _updatedOn		= RedmineUtility.LoadDateForSure(node[UpdatedOnProperty.XmlNodeName]);
        }
예제 #3
0
 internal UserMembership(User user, Project project, IEnumerable<UserRole> userRoles)
 {
     _user = user;
     _project = project;
     _userRoles = userRoles;
 }