类 EMBatchRecallMessagesMsgsInner
java.lang.Object
com.easemob.im.api.model.EMBatchRecallMessagesMsgsInner
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2026-06-24T10:21:36.382435+08:00[Asia/Shanghai]",
comments="Generator version: 7.14.0")
public class EMBatchRecallMessagesMsgsInner
extends Object
EMBatchRecallMessagesMsgsInner
-
嵌套类概要
嵌套类 -
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明booleanCreate an instance of EMBatchRecallMessagesMsgsInner given an JSON string要撤回消息的会话类型:- chat:单聊;- groupchat:群聊;- chatroom:聊天室getForce()是否支持强制撤回消息。getFrom()消息撤回方的用户 ID。getMsgId()要撤回消息的消息 ID是否将单聊消息撤回同步给消息发送方的所有在线设备。getTo()要撤回消息的接收方。inthashCode()voidsetChatType(String chatType) voidvoidvoidvoidsetSyncDevice(Boolean syncDevice) voidsyncDevice(Boolean syncDevice) toJson()Convert an instance of EMBatchRecallMessagesMsgsInner to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
字段详细资料
-
构造器详细资料
-
EMBatchRecallMessagesMsgsInner
public EMBatchRecallMessagesMsgsInner()
-
-
方法详细资料
-
msgId
-
getMsgId
要撤回消息的消息 ID- 返回:
- msgId
-
setMsgId
-
to
-
getTo
要撤回消息的接收方。单聊为接收方用户 ID;群聊为群组 ID;聊天室为聊天室 ID- 返回:
- to
-
setTo
-
from
-
getFrom
消息撤回方的用户 ID。若不传该参数,默认为 admin- 返回:
- from
-
setFrom
-
chatType
-
getChatType
要撤回消息的会话类型:- chat:单聊;- groupchat:群聊;- chatroom:聊天室- 返回:
- chatType
-
setChatType
-
syncDevice
-
getSyncDevice
是否将单聊消息撤回同步给消息发送方的所有在线设备。-(默认)true:是;- false:否- 返回:
- syncDevice
-
setSyncDevice
-
force
-
getForce
是否支持强制撤回消息。- true:是,无论消息是否过期均可撤回;- false:否,只能在撤回时长内撤回- 返回:
- force
-
setForce
-
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 EMBatchRecallMessagesMsgsInner
-
fromJson
Create an instance of EMBatchRecallMessagesMsgsInner given an JSON string- 参数:
jsonString- JSON string- 返回:
- An instance of EMBatchRecallMessagesMsgsInner
- 抛出:
IOException- if the JSON string is invalid with respect to EMBatchRecallMessagesMsgsInner
-
toJson
Convert an instance of EMBatchRecallMessagesMsgsInner to an JSON string- 返回:
- JSON string
-