public class AVIMFileMessage extends AVIMTypedMessage
AVIMMessage.AVIMMessageIOType, AVIMMessage.AVIMMessageStatus| 限定符和类型 | 字段和说明 |
|---|---|
static String |
DURATION |
protected Map<String,Object> |
file |
static String |
FORMAT |
content, conversationId, currentClient, deliveredAt, from, ioType, mentionAll, mentionList, messageId, readAt, status, timestamp, uniqueToken, updateAt| 构造器和说明 |
|---|
AVIMFileMessage() |
AVIMFileMessage(cn.leancloud.AVFile file) |
AVIMFileMessage(File localFile) |
AVIMFileMessage(String localPath) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
equals(Object other) |
protected void |
fulFillFileInfo(cn.leancloud.callback.SaveCallback callback) |
protected void |
getAdditionalMetaData(Map<String,Object> meta,
cn.leancloud.callback.SaveCallback callback) |
Map<String,Object> |
getAttrs() |
cn.leancloud.AVFile |
getAVFile()
获取文件消息中得AVFile对象
|
Map<String,Object> |
getFile() |
Map<String,Object> |
getFileMetaData()
获取文件的metaData
|
String |
getFileUrl()
获取文件地址
|
String |
getLocalFilePath()
获取本地文件地址,如果用户并未指定任何本地文件,则返回 null
|
protected String |
getQueryName() |
long |
getSize()
获取文件大小
|
String |
getText() |
protected void |
parseAdditionalMetaData(Map<String,Object> meta,
com.alibaba.fastjson.JSONObject response) |
void |
setAttrs(Map<String,Object> attr) |
protected void |
setFile(Map<String,Object> file) |
protected void |
setHasAdditionalMetaAttr(boolean hasAdditionalMetaAttr) |
void |
setProgressCallback(cn.leancloud.callback.ProgressCallback callback)
设置文件上传进度回调
|
void |
setText(String text) |
protected void |
upload(cn.leancloud.callback.SaveCallback callback) |
computeFieldAttribute, getContent, getMessage, getMessageType, setContent, setMessageTypegenerateUniqueToken, getConversationId, getDeliveredAt, getFrom, getMentionList, getMentionListString, getMessageId, getMessageIOType, getMessageStatus, getReadAt, getReceiptTimestamp, getTimestamp, getUniqueToken, getUpdateAt, hashCode, isMentionAll, mentioned, parseJSONString, setConversationId, setFrom, setMentionAll, setMentionList, setMentionListString, setMessageId, setMessageIOType, setMessageStatus, setReadAt, setReceiptTimestamp, setTimestamp, setUniqueToken, setUpdateAt, toJSONStringpublic AVIMFileMessage()
public AVIMFileMessage(String localPath) throws IOException
IOExceptionpublic AVIMFileMessage(File localFile) throws IOException
IOExceptionpublic AVIMFileMessage(cn.leancloud.AVFile file)
public String getLocalFilePath()
public cn.leancloud.AVFile getAVFile()
protected void setHasAdditionalMetaAttr(boolean hasAdditionalMetaAttr)
public String getFileUrl()
public long getSize()
protected void upload(cn.leancloud.callback.SaveCallback callback)
public void setProgressCallback(cn.leancloud.callback.ProgressCallback callback)
callback - public String getText()
public void setText(String text)
protected void fulFillFileInfo(cn.leancloud.callback.SaveCallback callback)
protected String getQueryName()
protected void parseAdditionalMetaData(Map<String,Object> meta, com.alibaba.fastjson.JSONObject response)
protected void getAdditionalMetaData(Map<String,Object> meta, cn.leancloud.callback.SaveCallback callback)
public boolean equals(Object other)
equals 在类中 AVIMTypedMessageCopyright © 2018. All rights reserved.