Class AttachmentImpl

java.lang.Object
pw.chew.clickup4j.internal.entities.AttachmentImpl
All Implemented Interfaces:
Attachment

public class AttachmentImpl extends Object implements Attachment
  • Constructor Details

    • AttachmentImpl

      public AttachmentImpl(org.json.JSONObject data, ClickUp4j api)
  • Method Details

    • getId

      @NotNull public @NotNull String getId()
      Description copied from interface: Attachment
      The ID of the attachment.
      Specified by:
      getId in interface Attachment
      Returns:
      never-null ID of the attachment.
    • getVersion

      @NotNull public @NotNull String getVersion()
      Description copied from interface: Attachment
      The version of the attachment.
      Specified by:
      getVersion in interface Attachment
      Returns:
      never-null version of the attachment.
    • getDate

      @NotNull public @NotNull OffsetDateTime getDate()
      Description copied from interface: Attachment
      Returns the date of the attachment.
      Presumably this is when it was uploaded.
      Specified by:
      getDate in interface Attachment
      Returns:
      never-null date of the attachment.
    • getTitle

      @NotNull public @NotNull String getTitle()
      Description copied from interface: Attachment
      Returns the name of the attachment.
      Specified by:
      getTitle in interface Attachment
      Returns:
      never-null name of the attachment.
    • getExtension

      @NotNull public @NotNull String getExtension()
      Description copied from interface: Attachment
      Returns the file extension of the attachment.
      Specified by:
      getExtension in interface Attachment
      Returns:
      never-null file extension of the attachment.
    • getUrl

      @NotNull public @NotNull String getUrl()
      Description copied from interface: Attachment
      Returns the URL for the attachment.
      Specified by:
      getUrl in interface Attachment
      Returns:
      never-null URL for the attachment.
    • getClickUp4j

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