类 EMGetRoomInfoResource

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

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

    • SERIALIZED_NAME_ID

      public static final String SERIALIZED_NAME_ID
      另请参阅:
    • SERIALIZED_NAME_NAME

      public static final String SERIALIZED_NAME_NAME
      另请参阅:
    • SERIALIZED_NAME_DESCRIPTION

      public static final String SERIALIZED_NAME_DESCRIPTION
      另请参阅:
    • SERIALIZED_NAME_MEMBERSONLY

      public static final String SERIALIZED_NAME_MEMBERSONLY
      另请参阅:
    • SERIALIZED_NAME_ALLOWINVITES

      public static final String SERIALIZED_NAME_ALLOWINVITES
      另请参阅:
    • SERIALIZED_NAME_MAXUSERS

      public static final String SERIALIZED_NAME_MAXUSERS
      另请参阅:
    • SERIALIZED_NAME_OWNER

      public static final String SERIALIZED_NAME_OWNER
      另请参阅:
    • SERIALIZED_NAME_CREATED

      public static final String SERIALIZED_NAME_CREATED
      另请参阅:
    • SERIALIZED_NAME_CUSTOM

      public static final String SERIALIZED_NAME_CUSTOM
      另请参阅:
    • SERIALIZED_NAME_MUTE

      public static final String SERIALIZED_NAME_MUTE
      另请参阅:
    • SERIALIZED_NAME_AFFILIATIONS_COUNT

      public static final String SERIALIZED_NAME_AFFILIATIONS_COUNT
      另请参阅:
    • SERIALIZED_NAME_AFFILIATIONS

      public static final String SERIALIZED_NAME_AFFILIATIONS
      另请参阅:
    • SERIALIZED_NAME_DISABLED

      public static final String SERIALIZED_NAME_DISABLED
      另请参阅:
    • SERIALIZED_NAME_PUBLIC

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

      public static HashSet<String> openapiFields
    • openapiRequiredFields

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

    • EMGetRoomInfoResource

      public EMGetRoomInfoResource()
  • 方法详细资料

    • id

      public EMGetRoomInfoResource id(String id)
    • getId

      @Nullable public String getId()
      聊天室 ID,聊天室唯一标识
      返回:
      id
    • setId

      public void setId(String id)
    • name

      public EMGetRoomInfoResource name(String name)
    • getName

      @Nullable public String getName()
      聊天室名称
      返回:
      name
    • setName

      public void setName(String name)
    • description

      public EMGetRoomInfoResource description(String description)
    • getDescription

      @Nullable public String getDescription()
      聊天室描述
      返回:
      description
    • setDescription

      public void setDescription(String description)
    • membersonly

      public EMGetRoomInfoResource membersonly(Boolean membersonly)
    • getMembersonly

      @Nullable public Boolean getMembersonly()
      加入聊天室是否需要群主或者群管理员审批: - true:是。 - false:否
      返回:
      membersonly
    • setMembersonly

      public void setMembersonly(Boolean membersonly)
    • allowinvites

      public EMGetRoomInfoResource allowinvites(Boolean allowinvites)
    • getAllowinvites

      @Nullable public Boolean getAllowinvites()
      是否允许聊天室成员邀请其他用户加入该聊天室: - true:允许聊天室成员邀请他人加入该聊天室。 - false:仅聊天室所有者和管理员可邀请他人加入该聊天室
      返回:
      allowinvites
    • setAllowinvites

      public void setAllowinvites(Boolean allowinvites)
    • maxusers

      public EMGetRoomInfoResource maxusers(Integer maxusers)
    • getMaxusers

      @Nullable public Integer getMaxusers()
      聊天室成员数上限,创建聊天室时设置
      返回:
      maxusers
    • setMaxusers

      public void setMaxusers(Integer maxusers)
    • owner

      public EMGetRoomInfoResource owner(String owner)
    • getOwner

      @Nullable public String getOwner()
      聊天室所有者的用户 ID
      返回:
      owner
    • setOwner

      public void setOwner(String owner)
    • created

      public EMGetRoomInfoResource created(BigDecimal created)
    • getCreated

      @Nullable public BigDecimal getCreated()
      创建聊天室时间,Unix 时间戳,单位为毫秒
      返回:
      created
    • setCreated

      public void setCreated(BigDecimal created)
    • custom

      public EMGetRoomInfoResource custom(String custom)
    • getCustom

      @Nullable public String getCustom()
      聊天室扩展信息
      返回:
      custom
    • setCustom

      public void setCustom(String custom)
    • mute

      public EMGetRoomInfoResource mute(Boolean mute)
    • getMute

      @Nullable public Boolean getMute()
      聊天室是否禁言
      返回:
      mute
    • setMute

      public void setMute(Boolean mute)
    • affiliationsCount

      public EMGetRoomInfoResource affiliationsCount(Integer affiliationsCount)
    • getAffiliationsCount

      @Nullable public Integer getAffiliationsCount()
      现有聊天室成员总数
      返回:
      affiliationsCount
    • setAffiliationsCount

      public void setAffiliationsCount(Integer affiliationsCount)
    • affiliations

      public EMGetRoomInfoResource affiliations(List<Object> affiliations)
    • addAffiliationsItem

      public EMGetRoomInfoResource addAffiliationsItem(Object affiliationsItem)
    • getAffiliations

      @Nullable public List<Object> getAffiliations()
      现有聊天室成员列表,包含聊天室所有者和成员(包括聊天室管理员)
      返回:
      affiliations
    • setAffiliations

      public void setAffiliations(List<Object> affiliations)
    • disabled

      public EMGetRoomInfoResource disabled(Boolean disabled)
    • getDisabled

      @Nullable public Boolean getDisabled()
      聊天室是否封禁
      返回:
      disabled
    • setDisabled

      public void setDisabled(Boolean disabled)
    • _public

      public EMGetRoomInfoResource _public(Boolean _public)
    • getPublic

      @Nullable public Boolean getPublic()
      预留字段,无需关注
      返回:
      _public
    • setPublic

      public void setPublic(Boolean _public)
    • 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 EMGetRoomInfoResource
    • fromJson

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

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