类 EMImportChatUserMessage
java.lang.Object
com.easemob.im.api.model.EMImportChatUserMessage
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-01-25T14:51:53.998371+08:00[Asia/Shanghai]")
public class EMImportChatUserMessage
extends Object
EMImportChatUserMessage
-
嵌套类概要
嵌套类 -
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明body(EMMessageContent body) booleanstatic EMImportChatUserMessageCreate an instance of EMImportChatUserMessage given an JSON stringgetBody()Get bodygetFrom()消息发送方的用户 ID是否设置消息为已读。要导入的消息的时间戳,单位为毫秒。是否需要下载附件并上传到服务器。消息接收方的用户 IDgetType()消息类型: - txt:文本消息; - img:图片消息; - audio:语音消息; - video:视频消息; - file:文件消息; - loc:位置消息; - cmd:透传消息; - custom:自定义消息inthashCode()msgTimestamp(BigDecimal msgTimestamp) needDownload(Boolean needDownload) voidsetBody(EMMessageContent body) voidvoidsetIsAckRead(Boolean isAckRead) voidsetMsgTimestamp(BigDecimal msgTimestamp) voidsetNeedDownload(Boolean needDownload) voidvoidtoJson()Convert an instance of EMImportChatUserMessage to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
字段详细资料
-
构造器详细资料
-
EMImportChatUserMessage
public EMImportChatUserMessage()
-
-
方法详细资料
-
from
-
getFrom
消息发送方的用户 ID- 返回:
- from
-
setFrom
-
target
-
getTarget
消息接收方的用户 ID- 返回:
- target
-
setTarget
-
type
-
getType
消息类型: - txt:文本消息; - img:图片消息; - audio:语音消息; - video:视频消息; - file:文件消息; - loc:位置消息; - cmd:透传消息; - custom:自定义消息- 返回:
- type
-
setType
-
body
-
getBody
Get body- 返回:
- body
-
setBody
-
isAckRead
-
getIsAckRead
是否设置消息为已读。 - true:是; - false:否- 返回:
- isAckRead
-
setIsAckRead
-
msgTimestamp
-
getMsgTimestamp
要导入的消息的时间戳,单位为毫秒。若不传该参数,环信服务器会将导入的消息的时间戳设置为当前时间- 返回:
- msgTimestamp
-
setMsgTimestamp
-
needDownload
-
getNeedDownload
是否需要下载附件并上传到服务器。 - true:是。这种情况下,需确保附件地址可直接访问,没有访问权限的限制。 - (默认)false:否- 返回:
- needDownload
-
setNeedDownload
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- 参数:
jsonElement- JSON Element- 抛出:
IOException- if the JSON Element is invalid with respect to EMImportChatUserMessage
-
fromJson
Create an instance of EMImportChatUserMessage given an JSON string- 参数:
jsonString- JSON string- 返回:
- An instance of EMImportChatUserMessage
- 抛出:
IOException- if the JSON string is invalid with respect to EMImportChatUserMessage
-
toJson
Convert an instance of EMImportChatUserMessage to an JSON string- 返回:
- JSON string
-