Package zendesk.support
Class UploadResponse
- java.lang.Object
-
- zendesk.support.UploadResponse
-
public class UploadResponse extends java.lang.Object
This is a class model for a response for an uploaded attachment. This object will be returned byUploadProvider
- See Also:
- Show Attachments API documentation
-
-
Constructor Summary
Constructors Constructor and Description UploadResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description Attachment
getAttachment()
Get aAttachment
as a response of an uploaded filejava.util.Date
getExpiresAt()
Gets the date that the token expires atjava.lang.String
getToken()
Gets the token associated with the uploaded file.
-
-
-
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 aAttachment
as a response of an uploaded file- Returns:
- The attachment
-
-