Class UploadResponse

    • Constructor Summary

      Constructors 
      Constructor and Description
      UploadResponse() 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      Attachment getAttachment()
      Get a Attachment as a response of an uploaded file
      java.util.Date getExpiresAt()
      Gets the date that the token expires at
      java.lang.String getToken()
      Gets the token associated with the uploaded file.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UploadResponse

        public UploadResponse()
    • Method Detail

      • getToken

        public java.lang.String getToken()
        Gets the token associated with the uploaded file. Needed for attaching uploads to comments.
        Returns:
        the attachment token
      • getExpiresAt

        public java.util.Date getExpiresAt()
        Gets the date that the token expires at
        Returns:
        the date that the token expires at
      • getAttachment

        public Attachment getAttachment()
        Get a Attachment as a response of an uploaded file
        Returns:
        The attachment