Interface ActivityData
public interface ActivityData
Model for a project activity on a given
day including project
id, duration and comment.-
Method Summary
Modifier and TypeMethodDescriptionGet the activity's comment.Get the duration of the activity.Get the project's ID.booleanCheck if this is the remainder activity.voidsetComment(String comment) Set the activity's comment.voidsetDuration(Duration duration) Set the duration of the activity.voidsetProjectId(String id) Set the project's ID.
-
Method Details
-
getProjectId
String getProjectId()Get the project's ID.- Returns:
- the project's ID.
-
setProjectId
Set the project's ID.- Parameters:
id- the new ID.
-
getDuration
Duration getDuration()Get the duration of the activity.- Returns:
- the duration of the activity.
-
isRemainder
boolean isRemainder()Check if this is the remainder activity.- Returns:
trueif this is the remainder activity i.e. the duration isnull.
-
setDuration
Set the duration of the activity.- Parameters:
duration- the new duration. Set tonullfor the remainder activity.
-
getComment
String getComment()Get the activity's comment.- Returns:
- the activity's comment.
-
setComment
Set the activity's comment.- Parameters:
comment- the new comment.
-