Class TimelineEntryImpl

java.lang.Object
pw.chew.clickup4j.internal.entities.TimelineEntryImpl
All Implemented Interfaces:
TimelineEntry

public class TimelineEntryImpl extends Object implements TimelineEntry
  • Constructor Details

    • TimelineEntryImpl

      public TimelineEntryImpl(@NotNull @NotNull org.json.JSONObject data, @NotNull @NotNull ClickUp4j api, @NotNull @NotNull Target target)
    • TimelineEntryImpl

      public TimelineEntryImpl(@NotNull @NotNull org.json.JSONObject data, @NotNull @NotNull ClickUp4j api, @NotNull @NotNull List<Target> targets)
  • Method Details

    • getId

      @NotNull public @NotNull UUID getId()
      Description copied from interface: TimelineEntry
      Get the ID of this Timeline Entry.
      Specified by:
      getId in interface TimelineEntry
      Returns:
      never-null ID of this Timeline Entry.
    • getTarget

      @NotNull public @NotNull Target getTarget()
      Description copied from interface: TimelineEntry
      Gets the Target this Timeline Entry is for.
      Specified by:
      getTarget in interface TimelineEntry
      Returns:
      never-null Target this Timeline Entry is for.
    • getUserId

      @NotNull public @NotNull String getUserId()
      Description copied from interface: TimelineEntry
      Returns the User id who created this Timeline Entry.
      Specified by:
      getUserId in interface TimelineEntry
      Returns:
      never-null User id who created this Timeline Entry.
    • getNote

      @NotNull public @NotNull String getNote()
      Description copied from interface: TimelineEntry
      The note of this entry as displayed to the user.
      If the user did not leave a note, this will be a blank String.
      Specified by:
      getNote in interface TimelineEntry
      Returns:
      never-null note of this entry.
    • getDateModified

      @NotNull public @NotNull OffsetDateTime getDateModified()
      Description copied from interface: TimelineEntry
      The date this entry was created (or last modified).
      Specified by:
      getDateModified in interface TimelineEntry
      Returns:
      never-null date this entry was created.
    • getStepsTaken

      @Nullable public @Nullable Integer getStepsTaken()
      Description copied from interface: TimelineEntry
      Returns the amount of steps taken caused by this entry.
      This will be null if the entry was not a step change.
      Specified by:
      getStepsTaken in interface TimelineEntry
      Returns:
      amount of steps taken caused by this entry.
    • getStepsBefore

      @Nullable public @Nullable Integer getStepsBefore()
      Description copied from interface: TimelineEntry
      Returns the amount of steps before this entry occurred.
      This will be null if the entry was creating the Target.
      Specified by:
      getStepsBefore in interface TimelineEntry
      Returns:
      amount of steps before this entry occurred.
    • getClickUp4j

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