IMSDK
即时通信 IM 提供全球接入、单聊、群聊、消息推送、资料关系链托管、账号鉴权等全方位解决方案,并提供完备的 App 接入、后台管理接口。
V2TIMTopicInfo

Public 成员函数

 V2TIMTopicInfo ()
 
String getTopicID ()
 
void setTopicID (String topicID)
 
String getTopicName ()
 
void setTopicName (String topicName)
 
String getTopicFaceUrl ()
 
void setTopicFaceUrl (String faceUrl)
 
String getIntroduction ()
 
void setIntroduction (String introduction)
 
String getNotification ()
 
void setNotification (String notification)
 
boolean isAllMute ()
 
void setAllMute (boolean allMute)
 
long getSelfMuteTime ()
 
String getCustomString ()
 
void setCustomString (String customString)
 
int getRecvOpt ()
 
String getDraftText ()
 
void setDraft (String draftText)
 
long getUnreadCount ()
 
V2TIMMessage getLastMessage ()
 
long getReadSequence ()
 
List< V2TIMGroupAtInfogetGroupAtInfoList ()
 
long getCreateTime ()
 
Long getDefaultPermissions ()
 
void setDefaultPermissions (long defaultPermissions)
 

Protected 成员函数

void setTopicInfo (TopicInfo topicInfo)
 

构造及析构函数说明

◆ V2TIMTopicInfo()

V2TIMTopicInfo ( )
inline

成员函数说明

◆ setTopicInfo()

void setTopicInfo ( TopicInfo  topicInfo)
inlineprotected

◆ getTopicID()

String getTopicID ( )
inline

获取话题 id

◆ setTopicID()

void setTopicID ( String  topicID)
inline

设置话题 ID,只能在创建话题或者修改话题信息的时候设置。组成方式为:社群 ID + @TOPIC_xxx,例如社群 ID 为 @TGS_123,则话题 ID 为 @TGS_123@TOPIC_xxx

◆ getTopicName()

String getTopicName ( )
inline

获取话题名称

◆ setTopicName()

void setTopicName ( String  topicName)
inline

设置话题名称,创建话题和修改话题信息都可以设置

注意
话题名称最长 150 字节,使用 UTF-8 编码
参数
topicName话题名称

◆ getTopicFaceUrl()

String getTopicFaceUrl ( )
inline

获取话题头像

◆ setTopicFaceUrl()

void setTopicFaceUrl ( String  faceUrl)
inline

设置话题头像,创建话题和修改话题信息都可以设置

注意
话题头像 URL 最长 500 字节,使用 UTF-8 编码

◆ getIntroduction()

String getIntroduction ( )
inline

获取话题介绍

◆ setIntroduction()

void setIntroduction ( String  introduction)
inline

设置话题介绍,创建话题和修改话题信息都可以设置

注意
话题介绍最长 400 字节,使用 UTF-8 编码

◆ getNotification()

String getNotification ( )
inline

获取话题公告

◆ setNotification()

void setNotification ( String  notification)
inline

设置话题公告,创建话题和修改话题信息都可以设置

注意
话题公告最长 400 字节,使用 UTF-8 编码

◆ isAllMute()

boolean isAllMute ( )
inline

获取当前话题是否设置了全员禁言

◆ setAllMute()

void setAllMute ( boolean  allMute)
inline

设置话题全员禁言,只能在修改话题信息的时候设置

◆ getSelfMuteTime()

long getSelfMuteTime ( )
inline

获取自己在话题中的禁言时间,utc 时间,单位:秒

◆ getCustomString()

String getCustomString ( )
inline

获取自定义字符串

◆ setCustomString()

void setCustomString ( String  customString)
inline

修改自定义字符串

◆ getRecvOpt()

int getRecvOpt ( )
inline

获取话题消息接收选项,修改话题消息接收选项请调用 setReceiveMessageOpt 接口

◆ getDraftText()

String getDraftText ( )
inline

获取话题草稿

◆ setDraft()

void setDraft ( String  draftText)
inline

设置话题草稿

◆ getUnreadCount()

long getUnreadCount ( )
inline

获取未读消息数量

◆ getLastMessage()

V2TIMMessage getLastMessage ( )
inline

话题最后一条消息

◆ getReadSequence()

long getReadSequence ( )
inline

话题已读消息的 sequence,从 7.8 版本开始支持

◆ getGroupAtInfoList()

List<V2TIMGroupAtInfo> getGroupAtInfoList ( )
inline

获取话题 at 信息列表

◆ getCreateTime()

long getCreateTime ( )
inline

话题创建时间,单位:秒

◆ getDefaultPermissions()

Long getDefaultPermissions ( )
inline

获取话题默认权限,从 7.8 版本开始支持

◆ setDefaultPermissions()

void setDefaultPermissions ( long  defaultPermissions)
inline

设置话题默认权限,从 7.8 版本开始支持

注意
群成员在没有加入任何权限组时的默认权限,仅在社群资料 V2TIMGroupInfo 中 enablePermissionGroup = true 打开权限组之后生效