IMSDK
IM features a comprehensive suite of solutions including global access, one-to-one chat, group chat, message push, profile and relationship chain hosting, and account authentication. It also provides complete app access and backend management APIs.
V2TIMTopicInfo

Public Member Functions

 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 ()
 
List< V2TIMGroupAtInfogetGroupAtInfoList ()
 

Constructor & Destructor Documentation

◆ V2TIMTopicInfo()

V2TIMTopicInfo ( )
inline

Member Function Documentation

◆ setTopicInfo()

void setTopicInfo ( TopicInfo  topicInfo)
inlineprotected

◆ getTopicID()

String getTopicID ( )
inline

Get the topic ID

Returns
Topid ID

◆ setTopicID()

void setTopicID ( String  topicID)
inline

Set the topicID. This operation can be performed only during topic creation.

Parameters
topicIDTopic ID

◆ getTopicName()

String getTopicName ( )
inline

Get the topic name

Returns

◆ setTopicName()

void setTopicName ( String  topicName)
inline

Set the topic name. This operation can be performed only during topic creation or topic information modification.

Parameters
topicNameTopic name

◆ getTopicFaceUrl()

String getTopicFaceUrl ( )
inline

Get the topic profile photo URL

Returns
Topic profile photo URL

◆ setTopicFaceUrl()

void setTopicFaceUrl ( String  faceUrl)
inline

Set the topic profile photo URL

Parameters
faceUrlTopic profile photo URL

◆ getIntroduction()

String getIntroduction ( )
inline

Get the topic introduction

◆ setIntroduction()

void setIntroduction ( String  introduction)
inline

Set the topic introduction. This operation can be performed only during topic creation or topic information modification.

◆ getNotification()

String getNotification ( )
inline

Get the topic notice. This operation can be performed only during topic creation or topic information modification.

◆ setNotification()

void setNotification ( String  notification)
inline

Set the topic notice. This operation can be performed only during topic creation or topic information modification.

◆ isAllMute()

boolean isAllMute ( )
inline

Get whether the current topic has muted all members

◆ setAllMute()

void setAllMute ( boolean  allMute)
inline

Set whether to mute all group members. This operation can be performed only during topic information modification.

◆ getSelfMuteTime()

long getSelfMuteTime ( )
inline

Get current user mute time in the topic.

◆ getCustomString()

String getCustomString ( )
inline

Get current user custom String in the topic.

◆ setCustomString()

void setCustomString ( String  customString)
inline

Set current user custom String in the topic.

◆ getRecvOpt()

int getRecvOpt ( )
inline

Get the current user's message receiving option in the topic. To modify the topic message receiving option, please call the setReceiveMessageOpt API.

Returns
Message receiving options: V2TIMMessage.V2TIM_RECEIVE_MESSAGE, V2TIMMessage.V2TIM_NOT_RECEIVE_MESSAGE, V2TIMMessage.V2TIM_RECEIVE_NOT_NOTIFY_MESSAGE

◆ getDraftText()

String getDraftText ( )
inline

Get a draft message whose editing is not finished (a draft message is stored locally only and will get lost after the app is uninstalled and reinstalled)

Returns
Return the draft content. If the draft content does not exist or is incorrect, return null

◆ setDraft()

void setDraft ( String  draftText)
inline

Set a draft for a topic

◆ getUnreadCount()

long getUnreadCount ( )
inline

Get current user unread messages count in the topic.

◆ getLastMessage()

V2TIMMessage getLastMessage ( )
inline

Last message in the topic.

◆ getGroupAtInfoList()

List<V2TIMGroupAtInfo> getGroupAtInfoList ( )
inline

Get the @ information list of topic, which is used to display "someone@me" or "@All" notifications