类 EMOneWayDeleteConversation
java.lang.Object
com.easemob.im.api.model.EMOneWayDeleteConversation
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-01-25T14:51:53.998371+08:00[Asia/Shanghai]")
public class EMOneWayDeleteConversation
extends Object
EMOneWayDeleteConversation
-
嵌套类概要
嵌套类 -
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明deleteRoam(Boolean deleteRoam) booleanstatic EMOneWayDeleteConversationCreate an instance of EMOneWayDeleteConversation given an JSON string要删除的会话 ID。是否删除该会话在服务端的漫游消息。getType()会话类型。inthashCode()voidsetChannel(String channel) voidsetDeleteRoam(Boolean deleteRoam) voidtoJson()Convert an instance of EMOneWayDeleteConversation to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
字段详细资料
-
构造器详细资料
-
EMOneWayDeleteConversation
public EMOneWayDeleteConversation()
-
-
方法详细资料
-
channel
-
getChannel
要删除的会话 ID。该参数的值取决于会话类型 type 的值 - type 为 chat,即单聊时,会话 ID 为对端用户 ID; - type 为 groupchat,即群聊时,会话 ID 为群组 ID- 返回:
- channel
-
setChannel
-
type
-
getType
会话类型。 - chat:单聊会话; - groupchat:群聊会话- 返回:
- type
-
setType
-
deleteRoam
-
getDeleteRoam
是否删除该会话在服务端的漫游消息。 - true:是。若删除了该会话的服务端消息,则用户无法从服务器拉取该会话的漫游消息。 - false:否。用户仍可以从服务器拉取该会话的漫游消息- 返回:
- deleteRoam
-
setDeleteRoam
-
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 EMOneWayDeleteConversation
-
fromJson
Create an instance of EMOneWayDeleteConversation given an JSON string- 参数:
jsonString- JSON string- 返回:
- An instance of EMOneWayDeleteConversation
- 抛出:
IOException- if the JSON string is invalid with respect to EMOneWayDeleteConversation
-
toJson
Convert an instance of EMOneWayDeleteConversation to an JSON string- 返回:
- JSON string
-