类 EMUserJoinedGroupResource

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-07-29T15:02:31.237631+08:00[Asia/Shanghai]") public class EMUserJoinedGroupResource extends Object
EMUserJoinedGroupResource
  • 字段详细资料

    • SERIALIZED_NAME_ID

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

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

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

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

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

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

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

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

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

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

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

      public static HashSet<String> openapiFields
    • openapiRequiredFields

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

    • EMUserJoinedGroupResource

      public EMUserJoinedGroupResource()
  • 方法详细资料

    • id

    • getId

      @Nullable public String getId()
      群组 ID
      返回:
      id
    • setId

      public void setId(String id)
    • name

      public EMUserJoinedGroupResource name(String name)
    • getName

      @Nullable public String getName()
      群组名称
      返回:
      name
    • setName

      public void setName(String name)
    • avatar

      public EMUserJoinedGroupResource avatar(String avatar)
    • getAvatar

      @Nullable public String getAvatar()
      群组头像的 URL
      返回:
      avatar
    • setAvatar

      public void setAvatar(String avatar)
    • owner

      public EMUserJoinedGroupResource owner(String owner)
    • getOwner

      @Nullable public String getOwner()
      群主的用户 ID
      返回:
      owner
    • setOwner

      public void setOwner(String owner)
    • description

      public EMUserJoinedGroupResource description(String description)
    • getDescription

      @Nullable public String getDescription()
      群组描述
      返回:
      description
    • setDescription

      public void setDescription(String description)
    • disabled

      public EMUserJoinedGroupResource disabled(Boolean disabled)
    • getDisabled

      @Nullable public Boolean getDisabled()
      群组是否被禁用: - true:禁用。禁用后不能对群组进行任何修改。 - false:未禁用
      返回:
      disabled
    • setDisabled

      public void setDisabled(Boolean disabled)
    • _public

      public EMUserJoinedGroupResource _public(Boolean _public)
    • getPublic

      @Nullable public Boolean getPublic()
      是否是公开群: - true:公开群。公开群可以被搜索到,用户可以申请加入公开群。 - false:私有群。私有群无法被搜索到,需要群主或群管理员邀请,用户才可以加入
      返回:
      _public
    • setPublic

      public void setPublic(Boolean _public)
    • allowinvites

      public EMUserJoinedGroupResource allowinvites(Boolean allowinvites)
    • getAllowinvites

      @Nullable public Boolean getAllowinvites()
      是否允许普通群成员邀请用户加入群组: - true:普通群成员可拉人入群; - false:只有群主或者管理员才可以拉人入群
      返回:
      allowinvites
    • setAllowinvites

      public void setAllowinvites(Boolean allowinvites)
    • membersonly

      public EMUserJoinedGroupResource membersonly(Boolean membersonly)
    • getMembersonly

      @Nullable public Boolean getMembersonly()
      用户申请入群是否需要群主或者群管理员审批。 - true:需要; - false:不需要,用户直接进群
      返回:
      membersonly
    • setMembersonly

      public void setMembersonly(Boolean membersonly)
    • maxusers

      public EMUserJoinedGroupResource maxusers(Integer maxusers)
    • getMaxusers

      @Nullable public Integer getMaxusers()
      群组最大成员数(包括群主)
      返回:
      maxusers
    • setMaxusers

      public void setMaxusers(Integer maxusers)
    • created

      public EMUserJoinedGroupResource created(BigDecimal created)
    • getCreated

      @Nullable public BigDecimal getCreated()
      群组创建的时间戳,单位为毫秒
      返回:
      created
    • setCreated

      public void setCreated(BigDecimal created)
    • 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 EMUserJoinedGroupResource
    • fromJson

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

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