类 EMForceSetRoomCustomAttributes
java.lang.Object
com.easemob.im.api.model.EMForceSetRoomCustomAttributes
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-01-25T14:51:53.998371+08:00[Asia/Shanghai]")
public class EMForceSetRoomCustomAttributes
extends Object
EMForceSetRoomCustomAttributes
-
嵌套类概要
嵌套类 -
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明autoDelete(String autoDelete) booleanCreate an instance of EMForceSetRoomCustomAttributes given an JSON string当前成员退出聊天室时是否自动删除该自定义属性。聊天室的自定义属性,存储为键值对(key-value)集合,即 Map<String,String>。inthashCode()voidsetAutoDelete(String autoDelete) voidsetMetaData(Map<String, String> metaData) toJson()Convert an instance of EMForceSetRoomCustomAttributes to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
字段详细资料
-
构造器详细资料
-
EMForceSetRoomCustomAttributes
public EMForceSetRoomCustomAttributes()
-
-
方法详细资料
-
metaData
-
getMetaData
聊天室的自定义属性,存储为键值对(key-value)集合,即 Map<String,String>。该集合中最多可包含 10 个键值对,在每个键值对中,key 为属性名称,最多可包含 128 个字符;value 为属性值,不能超过 4096 个字符。每个聊天室最多可有 100 个自定义属性,每个应用的聊天室自定义属性总大小为 10 GB。 key 支持以下字符集: - 26 个小写英文字母 a-z; - 26 个大写英文字母 A-Z; - 10 个数字 0-9; - “_”, “-”, “.”- 返回:
- metaData
-
setMetaData
-
autoDelete
-
getAutoDelete
当前成员退出聊天室时是否自动删除该自定义属性。 -(默认)'DELETE':是; - 'NO_DELETE':否- 返回:
- autoDelete
-
setAutoDelete
-
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 EMForceSetRoomCustomAttributes
-
fromJson
Create an instance of EMForceSetRoomCustomAttributes given an JSON string- 参数:
jsonString- JSON string- 返回:
- An instance of EMForceSetRoomCustomAttributes
- 抛出:
IOException- if the JSON string is invalid with respect to EMForceSetRoomCustomAttributes
-
toJson
Convert an instance of EMForceSetRoomCustomAttributes to an JSON string- 返回:
- JSON string
-