Class TargetImpl

java.lang.Object
pw.chew.clickup4j.internal.entities.TargetImpl
All Implemented Interfaces:
Target

public class TargetImpl extends Object implements Target
  • Constructor Details

    • TargetImpl

      public TargetImpl(@NotNull @NotNull org.json.JSONObject data, @NotNull @NotNull ClickUp4j api, @NotNull @NotNull Goal goal)
  • Method Details

    • getId

      @NotNull public @NotNull UUID getId()
      Description copied from interface: Target
      The unique identifier of the target.
      Specified by:
      getId in interface Target
      Returns:
      never-null UUID of the target
    • getGoal

      @NotNull public @NotNull Goal getGoal()
      Description copied from interface: Target
      The Goal this target belongs to.
      Specified by:
      getGoal in interface Target
      Returns:
      never-null Goal this target belongs to
    • getName

      @NotNull public @NotNull String getName()
      Description copied from interface: Target
      Returns the name of the target.
      Specified by:
      getName in interface Target
      Returns:
      never-null name of the target
    • getCreatorId

      @NotNull public @NotNull String getCreatorId()
      Description copied from interface: Target
      Returns the ID of the User who created the target.
      Specified by:
      getCreatorId in interface Target
      Returns:
      never-null ID of the User who created the target
    • getOwner

      @Nullable public @Nullable User getOwner()
      Description copied from interface: Target
      Returns the owner of the target.
      Specified by:
      getOwner in interface Target
      Returns:
      nullable User owner of the target
    • getType

      @NotNull public @NotNull String getType()
      Description copied from interface: Target
      Returns the type of the target.
      Specified by:
      getType in interface Target
      Returns:
      never-null type of the target
    • getDateCreated

      @NotNull public @NotNull OffsetDateTime getDateCreated()
      Description copied from interface: Target
      Returns the date and time when the target was created.
      Specified by:
      getDateCreated in interface Target
      Returns:
      never-null date and time when the target was created
    • getStepsStart

      public int getStepsStart()
      Description copied from interface: Target
      The number of steps to start with.
      Specified by:
      getStepsStart in interface Target
      Returns:
      number of steps to start with
    • getStepsEnd

      public int getStepsEnd()
      Description copied from interface: Target
      The number of steps to complete.
      Specified by:
      getStepsEnd in interface Target
      Returns:
      number of steps to complete
    • getCurrentStep

      public int getCurrentStep()
      Description copied from interface: Target
      Returns the current number of steps.
      Specified by:
      getCurrentStep in interface Target
      Returns:
      current number of steps
    • getUnit

      @NotNull public @NotNull String getUnit()
      Description copied from interface: Target
      Returns the unit of measurement for a step.
      Specified by:
      getUnit in interface Target
      Returns:
      never-null unit of measurement for a step
    • getPercentCompleted

      public float getPercentCompleted()
      Description copied from interface: Target
      Returns the current percentage of completion.
      Specified by:
      getPercentCompleted in interface Target
      Returns:
      current percentage of completion
    • isCompleted

      public boolean isCompleted()
      Description copied from interface: Target
      Returns if this target is completed.
      Specified by:
      isCompleted in interface Target
      Returns:
      true if this target is completed, false otherwise
    • getLastAction

      @NotNull public @NotNull TimelineEntry getLastAction()
      Description copied from interface: Target
      Returns the most recent action that was performed on the target.
      Specified by:
      getLastAction in interface Target
      Returns:
      never-null TimelineEntry most recent action performed on the target
    • getClickUp4j

      @NotNull public @NotNull ClickUp4j getClickUp4j()
      Description copied from interface: Target
      Returns this ClickUp4j instance.
      Specified by:
      getClickUp4j in interface Target
      Returns:
      never-null ClickUp4j instance.