Class TimelineEntryImpl
java.lang.Object
pw.chew.clickup4j.internal.entities.TimelineEntryImpl
- All Implemented Interfaces:
TimelineEntry
-
Constructor Summary
ConstructorDescriptionTimelineEntryImpl
(@NotNull org.json.JSONObject data, @NotNull ClickUp4j api, @NotNull List<Target> targets) TimelineEntryImpl
(@NotNull org.json.JSONObject data, @NotNull ClickUp4j api, @NotNull Target target) -
Method Summary
Modifier and TypeMethodDescription@NotNull ClickUp4j
Returns thisClickUp4j
instance.@NotNull OffsetDateTime
The date this entry was created (or last modified).@NotNull UUID
getId()
Get the ID of this Timeline Entry.@NotNull String
getNote()
The note of this entry as displayed to the user.@Nullable Integer
Returns the amount of steps before this entry occurred.@Nullable Integer
Returns the amount of steps taken caused by this entry.@NotNull Target
Gets theTarget
this Timeline Entry is for.@NotNull String
Returns theUser
id who created this Timeline Entry.
-
Constructor Details
-
TimelineEntryImpl
-
TimelineEntryImpl
-
-
Method Details
-
getId
Description copied from interface:TimelineEntry
Get the ID of this Timeline Entry.- Specified by:
getId
in interfaceTimelineEntry
- Returns:
- never-null ID of this Timeline Entry.
-
getTarget
Description copied from interface:TimelineEntry
Gets theTarget
this Timeline Entry is for.- Specified by:
getTarget
in interfaceTimelineEntry
- Returns:
- never-null Target this Timeline Entry is for.
-
getUserId
Description copied from interface:TimelineEntry
Returns theUser
id who created this Timeline Entry.- Specified by:
getUserId
in interfaceTimelineEntry
- Returns:
- never-null User id who created this Timeline Entry.
-
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 interfaceTimelineEntry
- Returns:
- never-null note of this entry.
-
getDateModified
Description copied from interface:TimelineEntry
The date this entry was created (or last modified).- Specified by:
getDateModified
in interfaceTimelineEntry
- Returns:
- never-null date this entry was created.
-
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 interfaceTimelineEntry
- Returns:
- amount of steps taken caused by this entry.
-
getStepsBefore
Description copied from interface:TimelineEntry
Returns the amount of steps before this entry occurred.
This will be null if the entry was creating theTarget
.- Specified by:
getStepsBefore
in interfaceTimelineEntry
- Returns:
- amount of steps before this entry occurred.
-
getClickUp4j
Description copied from interface:TimelineEntry
Returns thisClickUp4j
instance.- Specified by:
getClickUp4j
in interfaceTimelineEntry
- Returns:
- never-null ClickUp4j instance.
-