Class CommunityChannel

  • All Implemented Interfaces:

    
    public final class CommunityChannel
    extends BaseChannel
                        

    Community channel.

    A channel type that supports sub-channel management, similar to a Discord server. A community channel can contain multiple sub-channels, enabling topic-based message organization.

    • Constructor Detail

      • CommunityChannel

        CommunityChannel(String channelId)
    • Method Detail

      • getSubChannelId

         final String getSubChannelId()

        The sub-channel ID that this channel belongs to.

      • setSubChannelId

         final Unit setSubChannelId(String subChannelId)

        The sub-channel ID that this channel belongs to.

      • isTopForTag

         final Boolean isTopForTag()

        Whether this channel is pinned within a tag. Only valid when the channel is retrieved via a tag query.

      • setTopForTag

         final Unit setTopForTag(Boolean isTopForTag)

        Whether this channel is pinned within a tag. Only valid when the channel is retrieved via a tag query.

      • getFirstUnreadMsgSendTime

         final Long getFirstUnreadMsgSendTime()

        Sent timestamp (milliseconds) of the first unread message. Only valid for community channels.

      • setFirstUnreadMsgSendTime

         final Unit setFirstUnreadMsgSendTime(Long firstUnreadMsgSendTime)

        Sent timestamp (milliseconds) of the first unread message. Only valid for community channels.

      • getUnreadCount

         final Unit getUnreadCount(OperationHandler<Integer> handler)

        Gets the unread message count for this community channel (with sub-channel).

        Uses the current subChannelId to query unread count.

        Parameters:
        handler - Callback returning the unread count on success
      • pin

         Unit pin(PinParams params, OperationHandler<Boolean> handler)

        Pins this community channel (sub-channel) to the top.

        Uses subChannelId to identify the target sub-channel.

        Parameters:
        params - Pin parameters
        handler - Callback returning the operation result
      • unpin

         Unit unpin(OperationHandler<Boolean> handler)

        Unpins this community channel (sub-channel) from the top.

        Uses subChannelId to identify the target sub-channel.

        Parameters:
        handler - Callback returning the operation result
      • clearUnreadCount

         Unit clearUnreadCount(OperationHandler<Boolean> handler)

        Clears the unread message count for this community channel (with sub-channel).

        Uses subChannelId to sync read status for the target sub-channel.

        Parameters:
        handler - Callback returning the operation result