类 EMBatchCustomGroupMemberAttribute

java.lang.Object
com.easemob.im.api.model.EMBatchCustomGroupMemberAttribute

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-11-20T11:16:55.650302+08:00[Asia/Shanghai]") public class EMBatchCustomGroupMemberAttribute extends Object
EMBatchCustomGroupMemberAttribute
  • 字段详细资料

    • SERIALIZED_NAME_USERNAME

      public static final String SERIALIZED_NAME_USERNAME
      另请参阅:
    • SERIALIZED_NAME_METADATA

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

      public static HashSet<String> openapiFields
    • openapiRequiredFields

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

    • EMBatchCustomGroupMemberAttribute

      public EMBatchCustomGroupMemberAttribute()
  • 方法详细资料

    • username

      public EMBatchCustomGroupMemberAttribute username(String username)
    • getUsername

      @Nullable public String getUsername()
      用户 ID,长度不可超过 64 字节
      返回:
      username
    • setUsername

      public void setUsername(String username)
    • metadata

      public EMBatchCustomGroupMemberAttribute metadata(Object metadata)
    • getMetadata

      @Nullable public Object getMetadata()
      要设置的群成员自定义属性,为 key-value 键值对。对于单个键值对: - key 表示属性名称,不能超过 16 字节。 - value 表示属性值,不能超过 512 个字节。若 value 设置为空字符串即删除该自定义属性。 单个群成员的自定义属性总长度不能超过 4 KB
      返回:
      metadata
    • setMetadata

      public void setMetadata(Object metadata)
    • 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 EMBatchCustomGroupMemberAttribute
    • fromJson

      public static EMBatchCustomGroupMemberAttribute fromJson(String jsonString) throws IOException
      Create an instance of EMBatchCustomGroupMemberAttribute given an JSON string
      参数:
      jsonString - JSON string
      返回:
      An instance of EMBatchCustomGroupMemberAttribute
      抛出:
      IOException - if the JSON string is invalid with respect to EMBatchCustomGroupMemberAttribute
    • toJson

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