C# Class JelloScrum.Model.Entities.Story

Inheritance: ModelBase, ILogable
显示文件 Open project: auxilium/JelloScrum Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
AddComment ( string text ) : void

Adds the given text as comment.

AddTask ( Task task ) : void

Adds the given task

GetTasksWith ( State state ) : IList

Gets all tasks with the given state

GetTimeRegistrations ( ) : IList

Gets all timeregistrations for all tasks belonging to this story.

IsEstimatedTimeOfTasksLessThenEstimatedTimeOfStory ( ) : bool

Determines whether the estimated time of all tasks is less then the estimated time of this story.

RemoveTask ( Task task ) : void

Removes the given task

Story ( Project project, Interfaces.User createdBy, Impact impact, StoryType storyType ) : System

Initializes a new instance of the Story class.

TotalTimeSpent ( ) : System.TimeSpan

Gets the total amount of time spent on this story.

TotalTimeSpent ( System.DateTime startDate, System.DateTime endDate ) : System.TimeSpan

Gets the total amount of time spent on this story between the given startdate and enddate.

Protected Methods

Method Description
AddSprintStory ( SprintStory sprintStory ) : void

Adds the given sprintstory

Story ( ) : System

Initializes a new instance of the Story class.

Method Details

AddComment() public method

Adds the given text as comment.
public AddComment ( string text ) : void
text string The tekst.
return void

AddSprintStory() protected method

Adds the given sprintstory
protected AddSprintStory ( SprintStory sprintStory ) : void
sprintStory SprintStory The sprintstory.
return void

AddTask() public method

Adds the given task
public AddTask ( Task task ) : void
task Task The task.
return void

GetTasksWith() public method

Gets all tasks with the given state
public GetTasksWith ( State state ) : IList
state State The state.
return IList

GetTimeRegistrations() public method

Gets all timeregistrations for all tasks belonging to this story.
public GetTimeRegistrations ( ) : IList
return IList

IsEstimatedTimeOfTasksLessThenEstimatedTimeOfStory() public method

Determines whether the estimated time of all tasks is less then the estimated time of this story.

RemoveTask() public method

Removes the given task
public RemoveTask ( Task task ) : void
task Task The task.
return void

Story() protected method

Initializes a new instance of the Story class.
protected Story ( ) : System
return System

Story() public method

Initializes a new instance of the Story class.
public Story ( Project project, Interfaces.User createdBy, Impact impact, StoryType storyType ) : System
project Project The project.
createdBy Interfaces.User The user that created this story.
impact Impact The impact.
storyType StoryType Type of the story.
return System

TotalTimeSpent() public method

Gets the total amount of time spent on this story.
public TotalTimeSpent ( ) : System.TimeSpan
return System.TimeSpan

TotalTimeSpent() public method

Gets the total amount of time spent on this story between the given startdate and enddate.
public TotalTimeSpent ( System.DateTime startDate, System.DateTime endDate ) : System.TimeSpan
startDate System.DateTime The start date.
endDate System.DateTime The end date.
return System.TimeSpan