C# Class WhiskWork.Core.WorkItem

显示文件 Open project: jorn-ola-birkeland/WhiskWork Class Usage Examples

Public Methods

Method Description
AddClass ( string workItemClass ) : WorkItem
AsParent ( WorkItemParentType parentType ) : WorkItemParent
CreateChildItem ( string id, WorkItemParentType parentType ) : WorkItem
Equals ( object obj ) : bool
GetHashCode ( ) : int
MoveTo ( WorkStep step, System.DateTime timeStamp ) : WorkItem
New ( string id, string path ) : WorkItem
New ( string id, string path, NameValueCollection properties ) : WorkItem
NewUnchecked ( string id, string path, int ordinal, System.DateTime timeStamp, NameValueCollection properties ) : WorkItem
RemoveClass ( string workItemClass ) : WorkItem
ToString ( ) : string
UpdateClasses ( IEnumerable newClasses ) : WorkItem
UpdateLastMoved ( System.DateTime lastMoved ) : WorkItem
UpdateOrdinal ( int ordinal ) : WorkItem
UpdateParent ( WorkItem parentItem, WorkItemParentType parentType ) : WorkItem
UpdateParent ( string parentId, WorkItemParentType parentType ) : WorkItem
UpdateProperties ( string>.Dictionary properties ) : WorkItem
UpdateProperties ( NameValueCollection properties ) : WorkItem
UpdateProperties ( WorkItemProperties properties ) : WorkItem
UpdatePropertiesAndOrdinalFrom ( WorkItem item ) : WorkItem
UpdateProperty ( string name, string value ) : WorkItem
UpdateStatus ( WorkItemStatus status ) : WorkItem
UpdateTimestamp ( System.DateTime timeStamp ) : WorkItem

Private Methods

Method Description
GetModifiedProperties ( WorkItemProperties propertyUpdate ) : NameValueCollection
IsValidId ( string workItemId ) : bool
WorkItem ( string id, string path, IEnumerable workItemClasses, WorkItemStatus status, WorkItemParent parent, int ordinal, NameValueCollection properties, System.DateTime lastUpdated, System.DateTime lastMoved ) : System

Method Details

AddClass() public method

public AddClass ( string workItemClass ) : WorkItem
workItemClass string
return WorkItem

AsParent() public method

public AsParent ( WorkItemParentType parentType ) : WorkItemParent
parentType WorkItemParentType
return WorkItemParent

CreateChildItem() public method

public CreateChildItem ( string id, WorkItemParentType parentType ) : WorkItem
id string
parentType WorkItemParentType
return WorkItem

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

GetHashCode() public method

public GetHashCode ( ) : int
return int

MoveTo() public method

public MoveTo ( WorkStep step, System.DateTime timeStamp ) : WorkItem
step WorkStep
timeStamp System.DateTime
return WorkItem

New() public static method

public static New ( string id, string path ) : WorkItem
id string
path string
return WorkItem

New() public static method

public static New ( string id, string path, NameValueCollection properties ) : WorkItem
id string
path string
properties System.Collections.Specialized.NameValueCollection
return WorkItem

NewUnchecked() public static method

public static NewUnchecked ( string id, string path, int ordinal, System.DateTime timeStamp, NameValueCollection properties ) : WorkItem
id string
path string
ordinal int
timeStamp System.DateTime
properties System.Collections.Specialized.NameValueCollection
return WorkItem

RemoveClass() public method

public RemoveClass ( string workItemClass ) : WorkItem
workItemClass string
return WorkItem

ToString() public method

public ToString ( ) : string
return string

UpdateClasses() public method

public UpdateClasses ( IEnumerable newClasses ) : WorkItem
newClasses IEnumerable
return WorkItem

UpdateLastMoved() public method

public UpdateLastMoved ( System.DateTime lastMoved ) : WorkItem
lastMoved System.DateTime
return WorkItem

UpdateOrdinal() public method

public UpdateOrdinal ( int ordinal ) : WorkItem
ordinal int
return WorkItem

UpdateParent() public method

public UpdateParent ( WorkItem parentItem, WorkItemParentType parentType ) : WorkItem
parentItem WorkItem
parentType WorkItemParentType
return WorkItem

UpdateParent() public method

public UpdateParent ( string parentId, WorkItemParentType parentType ) : WorkItem
parentId string
parentType WorkItemParentType
return WorkItem

UpdateProperties() public method

public UpdateProperties ( string>.Dictionary properties ) : WorkItem
properties string>.Dictionary
return WorkItem

UpdateProperties() public method

public UpdateProperties ( NameValueCollection properties ) : WorkItem
properties System.Collections.Specialized.NameValueCollection
return WorkItem

UpdateProperties() public method

public UpdateProperties ( WorkItemProperties properties ) : WorkItem
properties WorkItemProperties
return WorkItem

UpdatePropertiesAndOrdinalFrom() public method

public UpdatePropertiesAndOrdinalFrom ( WorkItem item ) : WorkItem
item WorkItem
return WorkItem

UpdateProperty() public method

public UpdateProperty ( string name, string value ) : WorkItem
name string
value string
return WorkItem

UpdateStatus() public method

public UpdateStatus ( WorkItemStatus status ) : WorkItem
status WorkItemStatus
return WorkItem

UpdateTimestamp() public method

public UpdateTimestamp ( System.DateTime timeStamp ) : WorkItem
timeStamp System.DateTime
return WorkItem