C# Class JelloScrum.Model.Entities.Task

Inheritance: ModelBase, ILogable
Datei anzeigen Open project: auxilium/JelloScrum Class Usage Examples

Private Properties

Property Type Description
AddTimeRegistration void
CreateLogmessage void

Public Methods

Method Description
AddComment ( TaskComment comment ) : void

Add a comment

Close ( ) : void

Close this task.

GetTimeRegistrationsFor ( User user ) : IList

Gets all timeregistrations of the given user.

GetTimeRegistrationsFor ( User user, Sprint sprint, DateTime date ) : IList

Gets all timeregistrations of the given user for the given sprint and date.

RegisterTime ( User user, DateTime date, Sprint sprint, TimeSpan time ) : void

Register time spent on this task.

RemoveComment ( TaskComment comment ) : void

Remove a comment

RemoveTimeRegistration ( TimeRegistration timeRegistration ) : void

Removes a timeregistration.

SetAsNotTaken ( ) : void

Sets this task as not-taken.

Task ( ) : System

Initializes a new instance of the Task class.

Task ( Story story ) : System

Initializes a new instance of the Task class for the given story.

Task ( string description ) : System

Initializes a new instance of the Task class with the given description.

TotaalBestedeTijd ( User user, DateTime date ) : TimeSpan

Calculates the total time spent on this task by the given user on the given date.

TotalTimeSpent ( ) : TimeSpan

Calculates the total time spent on this task.

TotalTimeSpent ( DateTime date ) : TimeSpan

Calculates the total time spent on this task on the given date.

TotalTimeSpent ( DateTime startDate, DateTime endDate ) : TimeSpan

Calculates the total time spent on this task between the given start and end date.

TotalTimeSpent ( User user, DateRange dateRange ) : TimeSpan

Calculates the total time spent on this task by the given user in the given daterange.

UnassignTaskAndSetSatusAsOpen ( string logTitle, string logText ) : void

Decouple this task from the user it was assigned to, set status as open and create a logmessage.

Private Methods

Method Description
AddTimeRegistration ( TimeRegistration timeRegistration ) : void

Adds a timeregistration.

CreateLogmessage ( string title, string text ) : void

Create a logmessage

Method Details

AddComment() public method

Add a comment
public AddComment ( TaskComment comment ) : void
comment TaskComment The comment.
return void

Close() public method

Close this task.
public Close ( ) : void
return void

GetTimeRegistrationsFor() public method

Gets all timeregistrations of the given user.
public GetTimeRegistrationsFor ( User user ) : IList
user User The user.
return IList

GetTimeRegistrationsFor() public method

Gets all timeregistrations of the given user for the given sprint and date.
public GetTimeRegistrationsFor ( User user, Sprint sprint, DateTime date ) : IList
user User The user.
sprint Sprint The sprint.
date DateTime The date.
return IList

RegisterTime() public method

Register time spent on this task.
public RegisterTime ( User user, DateTime date, Sprint sprint, TimeSpan time ) : void
user User The user.
date DateTime The date.
sprint Sprint De sprint.
time TimeSpan The time.
return void

RemoveComment() public method

Remove a comment
public RemoveComment ( TaskComment comment ) : void
comment TaskComment The comment.
return void

RemoveTimeRegistration() public method

Removes a timeregistration.
public RemoveTimeRegistration ( TimeRegistration timeRegistration ) : void
timeRegistration TimeRegistration The time registration.
return void

SetAsNotTaken() public method

Sets this task as not-taken.
public SetAsNotTaken ( ) : void
return void

Task() public method

Initializes a new instance of the Task class.
public Task ( ) : System
return System

Task() public method

Initializes a new instance of the Task class for the given story.
public Task ( Story story ) : System
story Story The story.
return System

Task() public method

Initializes a new instance of the Task class with the given description.
public Task ( string description ) : System
description string The description.
return System

TotaalBestedeTijd() public method

Calculates the total time spent on this task by the given user on the given date.
public TotaalBestedeTijd ( User user, DateTime date ) : TimeSpan
user User The user.
date DateTime The date.
return TimeSpan

TotalTimeSpent() public method

Calculates the total time spent on this task.
public TotalTimeSpent ( ) : TimeSpan
return TimeSpan

TotalTimeSpent() public method

Calculates the total time spent on this task on the given date.
public TotalTimeSpent ( DateTime date ) : TimeSpan
date DateTime The date.
return TimeSpan

TotalTimeSpent() public method

Calculates the total time spent on this task between the given start and end date.
public TotalTimeSpent ( DateTime startDate, DateTime endDate ) : TimeSpan
startDate DateTime The start date.
endDate DateTime The end date.
return TimeSpan

TotalTimeSpent() public method

Calculates the total time spent on this task by the given user in the given daterange.
public TotalTimeSpent ( User user, DateRange dateRange ) : TimeSpan
user User The user.
dateRange DateRange The date range.
return TimeSpan

UnassignTaskAndSetSatusAsOpen() public method

Decouple this task from the user it was assigned to, set status as open and create a logmessage.
public UnassignTaskAndSetSatusAsOpen ( string logTitle, string logText ) : void
logTitle string
logText string
return void