类 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
  • 字段详细资料

    • SERIALIZED_NAME_META_DATA

      public static final String SERIALIZED_NAME_META_DATA
      另请参阅:
    • SERIALIZED_NAME_AUTO_DELETE

      public static final String SERIALIZED_NAME_AUTO_DELETE
      另请参阅:
    • openapiFields

      public static HashSet<String> openapiFields
    • openapiRequiredFields

      public static HashSet<String> openapiRequiredFields
  • 构造器详细资料

    • EMForceSetRoomCustomAttributes

      public EMForceSetRoomCustomAttributes()
  • 方法详细资料

    • metaData

      public EMForceSetRoomCustomAttributes metaData(Map<String,String> metaData)
    • getMetaData

      @Nullable public Map<String,String> 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

      public void setMetaData(Map<String,String> metaData)
    • autoDelete

      public EMForceSetRoomCustomAttributes autoDelete(String autoDelete)
    • getAutoDelete

      @Nullable public String getAutoDelete()
      当前成员退出聊天室时是否自动删除该自定义属性。 -(默认)'DELETE':是; - 'NO_DELETE':否
      返回:
      autoDelete
    • setAutoDelete

      public void setAutoDelete(String autoDelete)
    • equals

      public boolean equals(Object o)
      覆盖:
      equals 在类中 Object
    • hashCode

      public int hashCode()
      覆盖:
      hashCode 在类中 Object
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      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

      public static EMForceSetRoomCustomAttributes fromJson(String jsonString) throws IOException
      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

      public String toJson()
      Convert an instance of EMForceSetRoomCustomAttributes to an JSON string
      返回:
      JSON string