Package ai.nexconn.chat.message
Class FileMessage
-
- All Implemented Interfaces:
public final class FileMessage extends MediaMessageContent
File message.
Inherits MediaMessageContent. This message will store and count toward Unread message count.
Inherits from MediaMessageContent properties:
localPath Local file path
remoteUrl Remote file download URL
name File name
-
-
Field Summary
Fields Modifier and Type Field Description private Longsizeprivate StringfileTypeprivate StringlocalPathprivate StringremoteUrlprivate Stringnameprivate Stringextraprivate MentionedInfomentionedInfoprivate BooleanisDestructprivate LongdestructTime
-
Constructor Summary
Constructors Constructor Description FileMessage()
-
Method Summary
Modifier and Type Method Description final LonggetSize()File size (unit: bytes). final UnitsetSize(Long size)File size (unit: bytes). final StringgetFileType()File extension (e.g. final UnitsetFileType(String fileType)File extension (e.g. 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
-
getSize
final Long getSize()
File size (unit: bytes).
-
getFileType
final String getFileType()
File extension (e.g. "pdf", "doc").
-
setFileType
final Unit setFileType(String fileType)
File extension (e.g. "pdf", "doc").
-
toString
String toString()
-
-
-
-