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

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

Private Properties

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

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

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

Приватные методы

Метод Описание
AddTimeRegistration ( TimeRegistration timeRegistration ) : void

Adds a timeregistration.

CreateLogmessage ( string title, string text ) : void

Create a logmessage

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

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

Add a comment
public AddComment ( TaskComment comment ) : void
comment TaskComment The comment.
Результат void

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

Close this task.
public Close ( ) : void
Результат void

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

Gets all timeregistrations of the given user.
public GetTimeRegistrationsFor ( User user ) : IList
user User The user.
Результат IList

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

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

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

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

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

Remove a comment
public RemoveComment ( TaskComment comment ) : void
comment TaskComment The comment.
Результат void

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

Removes a timeregistration.
public RemoveTimeRegistration ( TimeRegistration timeRegistration ) : void
timeRegistration TimeRegistration The time registration.
Результат void

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

Sets this task as not-taken.
public SetAsNotTaken ( ) : void
Результат void

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

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

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

Initializes a new instance of the Task class for the given story.
public Task ( Story story ) : System
story Story The story.
Результат System

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

Initializes a new instance of the Task class with the given description.
public Task ( string description ) : System
description string The description.
Результат System

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

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

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

Calculates the total time spent on this task.
public TotalTimeSpent ( ) : TimeSpan
Результат TimeSpan

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

Calculates the total time spent on this task on the given date.
public TotalTimeSpent ( DateTime date ) : TimeSpan
date DateTime The date.
Результат TimeSpan

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

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

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

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

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

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