Interface ActivityData


public interface ActivityData
Model for a project activity on a given day including project id, duration and comment.
  • Method Details

    • getProjectId

      String getProjectId()
      Get the project's ID.
      Returns:
      the project's ID.
    • setProjectId

      void setProjectId(String id)
      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:
      true if this is the remainder activity i.e. the duration is null.
    • setDuration

      void setDuration(Duration duration)
      Set the duration of the activity.
      Parameters:
      duration - the new duration. Set to null for the remainder activity.
    • getComment

      String getComment()
      Get the activity's comment.
      Returns:
      the activity's comment.
    • setComment

      void setComment(String comment)
      Set the activity's comment.
      Parameters:
      comment - the new comment.