Package zendesk.support
Class AttachmentFile
- java.lang.Object
-
- zendesk.support.AttachmentFile
-
- All Implemented Interfaces:
- java.io.Serializable
public class AttachmentFile extends java.lang.Object implements java.io.Serializable
Model class representing a file to be uploaded to Zendesk Support as an attachment to a request comment. This class is a convenience, a holder for the parameters required byUploadProvider#uploadAttachment(String, File, String, ZendeskCallback)
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description AttachmentFile(java.lang.String fileName, java.lang.String mimeType, java.io.File file)
Construct a new instance of an AttachmentFile with the provided file name, MIME type, and file.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.io.File
getFile()
java.lang.String
getFileName()
java.lang.String
getMimeType()
-
-
-
Constructor Detail
-
AttachmentFile
public AttachmentFile(java.lang.String fileName, java.lang.String mimeType, java.io.File file)
Construct a new instance of an AttachmentFile with the provided file name, MIME type, and file. The arguments are not checked for nullability or content. Their values can be retrieved using the corresponding getters.- Parameters:
fileName
- the text to be used as the name of the file when uploading it.mimeType
- the String representation of the MIME type of the file to be used when uploading it.file
- theFile
to be uploaded.
-
-