类 EMUserContactCheck

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2026-04-02T18:37:16.027660+08:00[Asia/Shanghai]", comments="Generator version: 7.14.0") public class EMUserContactCheck extends Object
EMUserContactCheck
  • 字段详细资料

    • SERIALIZED_NAME_USERNAME

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

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

      public static HashSet<String> openapiFields
    • openapiRequiredFields

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

    • EMUserContactCheck

      public EMUserContactCheck()
  • 方法详细资料

    • username

      public EMUserContactCheck username(@Nonnull String username)
    • getUsername

      @Nonnull public String getUsername()
      当前用户 ID。批量检查该用户 ID 的好友
      返回:
      username
    • setUsername

      public void setUsername(@Nonnull String username)
    • checkList

      public EMUserContactCheck checkList(@Nonnull List<String> checkList)
    • addCheckListItem

      public EMUserContactCheck addCheckListItem(String checkListItem)
    • getCheckList

      @Nonnull public List<String> getCheckList()
      需要检查的好友的用户 ID,一次最多可校验 100 个用户 ID
      返回:
      checkList
    • setCheckList

      public void setCheckList(@Nonnull List<String> checkList)
    • 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 EMUserContactCheck
    • fromJson

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

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