Package ai.nexconn.chat.channel
Class DirectChannel
-
- All Implemented Interfaces:
public final class DirectChannel extends BaseChannel
Direct (1:1 private) channel.
Represents a one-on-one private chat between two users. A direct channel is automatically created when either party initiates a conversation; no manual creation or deletion is required.
Inherits from BaseChannel and supports message querying and unread count management.
-
-
Field Summary
Fields Modifier and Type Field Description private StringpeerUserIdprivate 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 DirectChannel(String channelId)
-
Method Summary
Modifier and Type Method Description final StringgetPeerUserId()the other party userID final UnitsetPeerUserId(String peerUserId)the other party userID final UnitsendTypingStatus(String typingMessageType)Sends a typing status notification to the peer user. -
Methods inherited from class ai.nexconn.chat.channel.BaseChannel
clearDraft, clearUnreadCount, delete, deleteLocalMessages, deleteMessageForAll, deleteMessagesForMe, deleteMessagesForMeByTimestamp, 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, toString, unpin -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getPeerUserId
final String getPeerUserId()
the other party userID
-
setPeerUserId
final Unit setPeerUserId(String peerUserId)
the other party userID
-
sendTypingStatus
final Unit sendTypingStatus(String typingMessageType)
Sends a typing status notification to the peer user.
Used to display a "the other party is typing..." indicator.
- Parameters:
typingMessageType- The message type identifier currently being composed (e.g.
-
-
-
-