Class ChecklistImpl

java.lang.Object
pw.chew.clickup4j.internal.entities.ChecklistImpl
All Implemented Interfaces:
Checklist

public class ChecklistImpl extends Object implements Checklist
  • Constructor Details

    • ChecklistImpl

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

    • getId

      @NotNull public @NotNull String getId()
      Description copied from interface: Checklist
      The checklist's ID.
      Specified by:
      getId in interface Checklist
      Returns:
      The checklist's ID.
    • getTaskId

      @NotNull public @NotNull String getTaskId()
      Description copied from interface: Checklist
      The ID of the task this checklist belongs to.
      Specified by:
      getTaskId in interface Checklist
      Returns:
      The ID of the task this checklist belongs to.
    • getName

      @NotNull public @NotNull String getName()
      Description copied from interface: Checklist
      The checklist's name.
      Specified by:
      getName in interface Checklist
      Returns:
      The checklist's name.
    • getCreatedAt

      @NotNull public @NotNull OffsetDateTime getCreatedAt()
      Description copied from interface: Checklist
      Return when this checklist was created.
      Specified by:
      getCreatedAt in interface Checklist
      Returns:
      When this checklist was created.
    • getOrderIndex

      public int getOrderIndex()
      Description copied from interface: Checklist
      The ordering of this checklist, if there are multiple. This can be used as a sorting key.
      Specified by:
      getOrderIndex in interface Checklist
      Returns:
      The order index of this checklist.
    • getCreatorId

      public long getCreatorId()
      Description copied from interface: Checklist
      Gets the ID of the user who created this checklist.
      Specified by:
      getCreatorId in interface Checklist
      Returns:
      the user ID of the user who created this checklist.
    • getResolvedCount

      public int getResolvedCount()
      Description copied from interface: Checklist
      The amount of items that are marked as complete.
      Specified by:
      getResolvedCount in interface Checklist
      Returns:
      The amount of items that are marked as complete.
    • getUnresolvedCount

      public int getUnresolvedCount()
      Description copied from interface: Checklist
      The amount of items that are marked as incomplete.
      Specified by:
      getUnresolvedCount in interface Checklist
      Returns:
      The amount of items that are marked as incomplete.
    • getItems

      public List<Checklist.Item> getItems()
      Description copied from interface: Checklist
      Returns the items in this checklist.
      Specified by:
      getItems in interface Checklist
      Returns:
      The items in this checklist.
    • getClickUp4j

      public ClickUp4j getClickUp4j()
      Description copied from interface: Checklist
      Returns this ClickUp4j instance.
      Specified by:
      getClickUp4j in interface Checklist
      Returns:
      This ClickUp4j instance.