C# Класс JelloScrum.Model.Entities.Story

Наследование: ModelBase, ILogable
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
AddSprintStory ( SprintStory sprintStory ) : void

Adds the given sprintstory

Story ( ) : System

Initializes a new instance of the Story class.

Описание методов

AddComment() публичный Метод

Adds the given text as comment.
public AddComment ( string text ) : void
text string The tekst.
Результат void

AddSprintStory() защищенный Метод

Adds the given sprintstory
protected AddSprintStory ( SprintStory sprintStory ) : void
sprintStory SprintStory The sprintstory.
Результат void

AddTask() публичный Метод

Adds the given task
public AddTask ( Task task ) : void
task Task The task.
Результат void

GetTasksWith() публичный Метод

Gets all tasks with the given state
public GetTasksWith ( State state ) : IList
state State The state.
Результат IList

GetTimeRegistrations() публичный Метод

Gets all timeregistrations for all tasks belonging to this story.
public GetTimeRegistrations ( ) : IList
Результат IList

IsEstimatedTimeOfTasksLessThenEstimatedTimeOfStory() публичный Метод

Determines whether the estimated time of all tasks is less then the estimated time of this story.
public IsEstimatedTimeOfTasksLessThenEstimatedTimeOfStory ( ) : bool
Результат bool

RemoveTask() публичный Метод

Removes the given task
public RemoveTask ( Task task ) : void
task Task The task.
Результат void

Story() защищенный Метод

Initializes a new instance of the Story class.
protected Story ( ) : System
Результат System

Story() публичный Метод

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.
Результат System

TotalTimeSpent() публичный Метод

Gets the total amount of time spent on this story.
public TotalTimeSpent ( ) : System.TimeSpan
Результат System.TimeSpan

TotalTimeSpent() публичный Метод

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.
Результат System.TimeSpan