类 EMSetRoomCustomAttributes
java.lang.Object
com.easemob.im.api.model.EMSetRoomCustomAttributes
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-01-24T18:15:02.198321+08:00[Asia/Shanghai]")
public class EMSetRoomCustomAttributes
extends Object
EMSetRoomCustomAttributes
-
嵌套类概要
嵌套类 -
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明autoDelete(String autoDelete) booleanstatic EMSetRoomCustomAttributesCreate an instance of EMSetRoomCustomAttributes given an JSON string当前成员退出聊天室时是否自动删除该自定义属性。聊天室的自定义属性,存储为键值对(key-value)集合,即 Map<String,String>。inthashCode()voidsetAutoDelete(String autoDelete) voidsetMetaData(Object metaData) toJson()Convert an instance of EMSetRoomCustomAttributes to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
字段详细资料
-
构造器详细资料
-
EMSetRoomCustomAttributes
public EMSetRoomCustomAttributes()
-
-
方法详细资料
-
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 EMSetRoomCustomAttributes
-
fromJson
Create an instance of EMSetRoomCustomAttributes given an JSON string- 参数:
jsonString- JSON string- 返回:
- An instance of EMSetRoomCustomAttributes
- 抛出:
IOException- if the JSON string is invalid with respect to EMSetRoomCustomAttributes
-
toJson
Convert an instance of EMSetRoomCustomAttributes to an JSON string- 返回:
- JSON string
-