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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
      DirectChannel(String channelId)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final String getPeerUserId() the other party userID
      final Unit setPeerUserId(String peerUserId) the other party userID
      final Unit sendTypingStatus(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, getMessageReadReceiptInfoByIdentifiers, 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
    • Constructor Detail

      • DirectChannel

        DirectChannel(String channelId)
    • Method Detail

      • getPeerUserId

         final String getPeerUserId()

        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.