Package ai.nexconn.chat.message
Class ImageMessage
-
- All Implemented Interfaces:
public final class ImageMessage extends MediaMessageContent
Image message.
Inherits MediaMessageContent. This message will store and count toward Unread message count.
Inherits from MediaMessageContent properties:
localPath Local image file path
remoteUrl Remote image download URL
name Image file name
-
-
Field Summary
Fields Modifier and Type Field Description private StringthumbnailBase64private Booleanoriginalprivate final IntegerthumWidthprivate final IntegerthumHeightprivate StringlocalPathprivate StringremoteUrlprivate Stringnameprivate Stringextraprivate MentionedInfomentionedInfoprivate BooleanisDestructprivate LongdestructTime
-
Constructor Summary
Constructors Constructor Description ImageMessage()
-
Method Summary
Modifier and Type Method Description final StringgetThumbnailBase64()Thumbnail Base64 encoded data. final UnitsetThumbnailBase64(String thumbnailBase64)Thumbnail Base64 encoded data. final BooleangetOriginal()Whether this is an original (full-resolution) image. final UnitsetOriginal(Boolean original)Whether this is an original (full-resolution) image. final IntegergetThumWidth()Thumbnail image width in pixels. final IntegergetThumHeight()Thumbnail image height in pixels. StringtoString()-
Methods inherited from class ai.nexconn.chat.message.MediaMessageContent
getLocalPath, getName, getRemoteUrl, setLocalPath, setName, setRemoteUrl -
Methods inherited from class ai.nexconn.chat.message.MessageContent
getDestructTime, getExtra, getMentionedInfo, isDestruct, setDestruct, setDestructTime, setExtra, setMentionedInfo -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getThumbnailBase64
final String getThumbnailBase64()
Thumbnail Base64 encoded data.
-
setThumbnailBase64
final Unit setThumbnailBase64(String thumbnailBase64)
Thumbnail Base64 encoded data.
-
getOriginal
final Boolean getOriginal()
Whether this is an original (full-resolution) image.
-
setOriginal
final Unit setOriginal(Boolean original)
Whether this is an original (full-resolution) image.
-
getThumWidth
final Integer getThumWidth()
Thumbnail image width in pixels.
-
getThumHeight
final Integer getThumHeight()
Thumbnail image height in pixels.
-
toString
String toString()
-
-
-
-