-
- All Implemented Interfaces:
-
io.getstream.chat.android.client.models.CustomObject
public final class Attachment implements CustomObject
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classAttachment.UploadStateRepresents various states in attachment upload lifecycle.
-
Field Summary
Fields Modifier and Type Field Description private StringauthorNameprivate StringauthorLinkprivate StringtitleLinkprivate StringthumbUrlprivate StringimageUrlprivate StringassetUrlprivate StringogUrlprivate StringmimeTypeprivate IntegerfileSizeprivate Stringtitleprivate Stringtextprivate Stringtypeprivate Stringimageprivate Stringurlprivate Stringnameprivate Stringfallbackprivate Fileuploadprivate Attachment.UploadStateuploadStateprivate Map<String, Object>extraData
-
Constructor Summary
Constructors Constructor Description Attachment(String authorName, String authorLink, String titleLink, String thumbUrl, String imageUrl, String assetUrl, String ogUrl, String mimeType, Integer fileSize, String title, String text, String type, String image, String url, String name, String fallback, File upload, Attachment.UploadState uploadState, Map<String, Object> extraData)
-
Method Summary
-
-
Constructor Detail
-
Attachment
Attachment(String authorName, String authorLink, String titleLink, String thumbUrl, String imageUrl, String assetUrl, String ogUrl, String mimeType, Integer fileSize, String title, String text, String type, String image, String url, String name, String fallback, File upload, Attachment.UploadState uploadState, Map<String, Object> extraData)
-
-
Method Detail
-
getAuthorName
final String getAuthorName()
-
setAuthorName
final Unit setAuthorName(String authorName)
-
getAuthorLink
final String getAuthorLink()
-
setAuthorLink
final Unit setAuthorLink(String authorLink)
-
getTitleLink
final String getTitleLink()
-
setTitleLink
final Unit setTitleLink(String titleLink)
-
getThumbUrl
final String getThumbUrl()
-
setThumbUrl
final Unit setThumbUrl(String thumbUrl)
-
getImageUrl
final String getImageUrl()
-
setImageUrl
final Unit setImageUrl(String imageUrl)
-
getAssetUrl
final String getAssetUrl()
-
setAssetUrl
final Unit setAssetUrl(String assetUrl)
-
getMimeType
final String getMimeType()
-
setMimeType
final Unit setMimeType(String mimeType)
-
getFileSize
final Integer getFileSize()
-
setFileSize
final Unit setFileSize(Integer fileSize)
-
getFallback
final String getFallback()
-
setFallback
final Unit setFallback(String fallback)
-
getUpload
final File getUpload()
The local file to upload when the attachment is sent. The url property will be populated with the URL of the uploaded file when done.
Leaving this property empty means that there is no file to upload for this attachment.
-
setUpload
final Unit setUpload(File upload)
The local file to upload when the attachment is sent. The url property will be populated with the URL of the uploaded file when done.
Leaving this property empty means that there is no file to upload for this attachment.
-
getUploadState
final Attachment.UploadState getUploadState()
-
setUploadState
final Unit setUploadState(Attachment.UploadState uploadState)
-
getExtraData
Map<String, Object> getExtraData()
-
setExtraData
Unit setExtraData(Map<String, Object> extraData)
-
-
-
-