类 EMRoomWhiteListResource

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-01-25T14:51:53.998371+08:00[Asia/Shanghai]") public class EMRoomWhiteListResource extends Object
EMRoomWhiteListResource
  • 字段详细资料

    • SERIALIZED_NAME_RESULT

      public static final String SERIALIZED_NAME_RESULT
      另请参阅:
    • SERIALIZED_NAME_REASON

      public static final String SERIALIZED_NAME_REASON
      另请参阅:
    • SERIALIZED_NAME_USER

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

      public static HashSet<String> openapiFields
    • openapiRequiredFields

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

    • EMRoomWhiteListResource

      public EMRoomWhiteListResource()
  • 方法详细资料

    • result

      public EMRoomWhiteListResource result(Boolean result)
    • getResult

      @Nullable public Boolean getResult()
      是否成功将用户批量添加至聊天室白名单: - true:是; - false:否
      返回:
      result
    • setResult

      public void setResult(Boolean result)
    • reason

      public EMRoomWhiteListResource reason(String reason)
    • getReason

      @Nullable public String getReason()
      添加失败的原因
      返回:
      reason
    • setReason

      public void setReason(String reason)
    • user

      public EMRoomWhiteListResource user(String user)
    • getUser

      @Nullable public String getUser()
      添加的用户 ID
      返回:
      user
    • setUser

      public void setUser(String user)
    • 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 EMRoomWhiteListResource
    • fromJson

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

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