C# 클래스 JelloScrum.Model.Entities.Task

상속: ModelBase, ILogable
파일 보기 프로젝트 열기: auxilium/JelloScrum 1 사용 예제들

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