C# Class JelloScrum.Model.Entities.Task

Inheritance: ModelBase, ILogable
Afficher le fichier Open project: auxilium/JelloScrum Class Usage Examples

Private Properties

Свойство Type Description
AddTimeRegistration void
CreateLogmessage void

Méthodes publiques

Méthode 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

Méthode Description
AddTimeRegistration ( TimeRegistration timeRegistration ) : void

Adds a timeregistration.

CreateLogmessage ( string title, string text ) : void

Create a logmessage

Method Details

AddComment() public méthode

Add a comment
public AddComment ( TaskComment comment ) : void
comment TaskComment The comment.
Résultat void

Close() public méthode

Close this task.
public Close ( ) : void
Résultat void

GetTimeRegistrationsFor() public méthode

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

GetTimeRegistrationsFor() public méthode

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.
Résultat IList

RegisterTime() public méthode

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.
Résultat void

RemoveComment() public méthode

Remove a comment
public RemoveComment ( TaskComment comment ) : void
comment TaskComment The comment.
Résultat void

RemoveTimeRegistration() public méthode

Removes a timeregistration.
public RemoveTimeRegistration ( TimeRegistration timeRegistration ) : void
timeRegistration TimeRegistration The time registration.
Résultat void

SetAsNotTaken() public méthode

Sets this task as not-taken.
public SetAsNotTaken ( ) : void
Résultat void

Task() public méthode

Initializes a new instance of the Task class.
public Task ( ) : System
Résultat System

Task() public méthode

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

Task() public méthode

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

TotaalBestedeTijd() public méthode

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.
Résultat TimeSpan

TotalTimeSpent() public méthode

Calculates the total time spent on this task.
public TotalTimeSpent ( ) : TimeSpan
Résultat TimeSpan

TotalTimeSpent() public méthode

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

TotalTimeSpent() public méthode

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.
Résultat TimeSpan

TotalTimeSpent() public méthode

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.
Résultat TimeSpan

UnassignTaskAndSetSatusAsOpen() public méthode

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
Résultat void