Class FileMessage
- java.lang.Object
-
- com.zendesk.sunshine_conversations_client.model.FileMessage
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringJSON_PROPERTY_ALT_TEXTstatic java.lang.StringJSON_PROPERTY_ATTACHMENT_IDstatic java.lang.StringJSON_PROPERTY_MEDIA_SIZEstatic java.lang.StringJSON_PROPERTY_MEDIA_TYPEstatic java.lang.StringJSON_PROPERTY_MEDIA_URLstatic java.lang.StringJSON_PROPERTY_TEXTstatic java.lang.StringJSON_PROPERTY_TYPE
-
Constructor Summary
Constructors Constructor Description FileMessage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileMessagealtText(java.lang.String altText)FileMessageattachmentId(java.lang.String attachmentId)booleanequals(java.lang.Object o)java.lang.StringgetAltText()An optional description of the file for accessibility purposes.java.lang.StringgetAttachmentId()An identifier used by Sunshine Conversations for internal purposes.java.math.BigDecimalgetMediaSize()The size of the media.java.lang.StringgetMediaType()The media type of the file.java.net.URIgetMediaUrl()The URL for media, such as an image, attached to the message.java.lang.StringgetText()The text content of the message.java.lang.StringgetType()The type of message.inthashCode()FileMessagemediaUrl(java.net.URI mediaUrl)voidsetAltText(java.lang.String altText)voidsetAttachmentId(java.lang.String attachmentId)voidsetMediaUrl(java.net.URI mediaUrl)voidsetText(java.lang.String text)voidsetType(java.lang.String type)FileMessagetext(java.lang.String text)java.lang.StringtoString()FileMessagetype(java.lang.String type)
-
-
-
Field Detail
-
JSON_PROPERTY_TYPE
public static final java.lang.String JSON_PROPERTY_TYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MEDIA_URL
public static final java.lang.String JSON_PROPERTY_MEDIA_URL
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MEDIA_SIZE
public static final java.lang.String JSON_PROPERTY_MEDIA_SIZE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MEDIA_TYPE
public static final java.lang.String JSON_PROPERTY_MEDIA_TYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ALT_TEXT
public static final java.lang.String JSON_PROPERTY_ALT_TEXT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TEXT
public static final java.lang.String JSON_PROPERTY_TEXT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ATTACHMENT_ID
public static final java.lang.String JSON_PROPERTY_ATTACHMENT_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
type
public FileMessage type(java.lang.String type)
-
getType
public java.lang.String getType()
The type of message.
-
setType
public void setType(java.lang.String type)
-
mediaUrl
public FileMessage mediaUrl(java.net.URI mediaUrl)
-
getMediaUrl
public java.net.URI getMediaUrl()
The URL for media, such as an image, attached to the message.- Returns:
- mediaUrl
-
setMediaUrl
public void setMediaUrl(java.net.URI mediaUrl)
-
getMediaSize
@Nullable public java.math.BigDecimal getMediaSize()
The size of the media.- Returns:
- mediaSize
-
getMediaType
@Nullable public java.lang.String getMediaType()
The media type of the file.- Returns:
- mediaType
-
altText
public FileMessage altText(java.lang.String altText)
-
getAltText
@Nullable public java.lang.String getAltText()
An optional description of the file for accessibility purposes. The field will be saved by default with the file name as the value.- Returns:
- altText
-
setAltText
public void setAltText(java.lang.String altText)
-
text
public FileMessage text(java.lang.String text)
-
getText
@Nullable public java.lang.String getText()
The text content of the message.- Returns:
- text
-
setText
public void setText(java.lang.String text)
-
attachmentId
public FileMessage attachmentId(java.lang.String attachmentId)
-
getAttachmentId
@Nullable public java.lang.String getAttachmentId()
An identifier used by Sunshine Conversations for internal purposes.- Returns:
- attachmentId
-
setAttachmentId
public void setAttachmentId(java.lang.String attachmentId)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-