Class TargetImpl
java.lang.Object
pw.chew.clickup4j.internal.entities.TargetImpl
- All Implemented Interfaces:
Target
-
Constructor Summary
ConstructorsConstructorDescriptionTargetImpl(@NotNull org.json.JSONObject data, @NotNull ClickUp4j api, @NotNull Goal goal) -
Method Summary
Modifier and TypeMethodDescription@NotNull ClickUp4jReturns thisClickUp4jinstance.@NotNull StringReturns the ID of theUserwho created the target.intReturns the current number of steps.@NotNull OffsetDateTimeReturns the date and time when the target was created.@NotNull GoalgetGoal()TheGoalthis target belongs to.@NotNull UUIDgetId()The unique identifier of the target.@NotNull TimelineEntryReturns the most recentactionthat was performed on the target.@NotNull StringgetName()Returns the name of the target.@Nullable UsergetOwner()Returns the owner of the target.floatReturns the current percentage of completion.intThe number of steps to complete.intThe number of steps to start with.@NotNull StringgetType()Returns the type of the target.@NotNull StringgetUnit()Returns the unit of measurement for a step.booleanReturns if this target is completed.
-
Constructor Details
-
TargetImpl
-
-
Method Details
-
getId
Description copied from interface:TargetThe unique identifier of the target. -
getGoal
Description copied from interface:TargetTheGoalthis target belongs to. -
getName
Description copied from interface:TargetReturns the name of the target. -
getCreatorId
Description copied from interface:TargetReturns the ID of theUserwho created the target.- Specified by:
getCreatorIdin interfaceTarget- Returns:
- never-null ID of the
Userwho created the target
-
getOwner
Description copied from interface:TargetReturns the owner of the target. -
getType
Description copied from interface:TargetReturns the type of the target. -
getDateCreated
Description copied from interface:TargetReturns the date and time when the target was created.- Specified by:
getDateCreatedin interfaceTarget- Returns:
- never-null date and time when the target was created
-
getStepsStart
public int getStepsStart()Description copied from interface:TargetThe number of steps to start with.- Specified by:
getStepsStartin interfaceTarget- Returns:
- number of steps to start with
-
getStepsEnd
public int getStepsEnd()Description copied from interface:TargetThe number of steps to complete.- Specified by:
getStepsEndin interfaceTarget- Returns:
- number of steps to complete
-
getCurrentStep
public int getCurrentStep()Description copied from interface:TargetReturns the current number of steps.- Specified by:
getCurrentStepin interfaceTarget- Returns:
- current number of steps
-
getUnit
Description copied from interface:TargetReturns the unit of measurement for a step. -
getPercentCompleted
public float getPercentCompleted()Description copied from interface:TargetReturns the current percentage of completion.- Specified by:
getPercentCompletedin interfaceTarget- Returns:
- current percentage of completion
-
isCompleted
public boolean isCompleted()Description copied from interface:TargetReturns if this target is completed.- Specified by:
isCompletedin interfaceTarget- Returns:
- true if this target is completed, false otherwise
-
getLastAction
Description copied from interface:TargetReturns the most recentactionthat was performed on the target.- Specified by:
getLastActionin interfaceTarget- Returns:
- never-null
TimelineEntrymost recent action performed on the target
-
getClickUp4j
Description copied from interface:TargetReturns thisClickUp4jinstance.- Specified by:
getClickUp4jin interfaceTarget- Returns:
- never-null ClickUp4j instance.
-