Package ai.nexconn.chat.channel
Class CommunitySubChannel
-
- All Implemented Interfaces:
public final class CommunitySubChannel extends BaseChannel
Community sub-channel.
A sub-channel within a CommunityChannel, used for organizing messages by topic. Inherits from BaseChannel and reuses common channel properties and operations.
-
-
Field Summary
Fields Modifier and Type Field Description private StringsubChannelIdprivate final StringchannelIdprivate final ChannelTypechannelTypeprivate final IntegerunreadCountprivate final BooleanisPinnedprivate final LongoperationTimeprivate final Stringdraftprivate final MessagelatestMessageprivate final IntegermentionedCountprivate final IntegermentionedMeCountprivate final ChannelNoDisturbLevelnoDisturbLevelprivate final TranslateStrategytranslateStrategyprivate final BooleanincludeRobotprivate final EditedMessageDrafteditedMessageDraft
-
Constructor Summary
Constructors Constructor Description CommunitySubChannel(String subChannelId, String channelId)
-
Method Summary
Modifier and Type Method Description final StringgetSubChannelId()Sub-channel unique identifier. final UnitsetSubChannelId(String subChannelId)Sub-channel unique identifier. UnitdeleteMessagesForMeByTimestamp(DeleteMessagesForMeByTimestampParams params, ErrorHandler handler)Deletes messages in this sub-channel before the specified timestamp (for the current user). UnitclearUnreadCount(OperationHandler<Boolean> handler)Clears the unread message count for this sub-channel. StringtoString()-
Methods inherited from class ai.nexconn.chat.channel.BaseChannel
clearDraft, delete, deleteLocalMessages, deleteMessageForAll, deleteMessagesForMe, deleteTags, equals, getChannelId, getChannelType, getDraft, getEditedMessageDraft, getFirstUnreadMessage, getIncludeRobot, getLatestMessage, getMentionedCount, getMentionedMeCount, getMessageReadReceiptInfo, getMessagesAroundTime, getMessagesReadReceiptByUsers, getNoDisturbLevel, getOperationTime, getTags, getTranslateStrategy, getUnreadCount, getUnreadMentionedMessages, hashCode, insertMessages, isPinned, modifyMessage, pin, reload, saveDraft, sendMediaMessage, sendMessage, sendReadReceiptResponse, setNoDisturbLevel, unpin -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getSubChannelId
final String getSubChannelId()
Sub-channel unique identifier.
-
setSubChannelId
final Unit setSubChannelId(String subChannelId)
Sub-channel unique identifier.
-
deleteMessagesForMeByTimestamp
Unit deleteMessagesForMeByTimestamp(DeleteMessagesForMeByTimestampParams params, ErrorHandler handler)
Deletes messages in this sub-channel before the specified timestamp (for the current user).
Overrides the base channel implementation to handle sub-channel specific deletion.
The behavior depends on DeleteMessagesForMeByTimestampParams.policy:
MessageOperationPolicy.LOCAL: Deletes local messages only
MessageOperationPolicy.LOCAL_REMOTE: Deletes both local and remote messages
- Parameters:
params- Parameters including timestamp and operation policyhandler- Error callback;nullerror indicates success
-
clearUnreadCount
Unit clearUnreadCount(OperationHandler<Boolean> handler)
Clears the unread message count for this sub-channel.
- Parameters:
handler- Callback returning the operation result
-
toString
String toString()
-
-
-
-