Package 

Interface CommentReplyListState


  • 
    public interface CommentReplyListState
    
                        

    An observable object representing the current state of a comment's reply list.

    This class manages the state of replies for a specific comment, including the list of replies, pagination information, and real-time updates from WebSocket events. It automatically handles reply updates and reaction changes.

    • Observable State: Uses @Published properties for reactive UI updates

    • Real-time Updates: Automatically receives WebSocket events for reply changes

    • Pagination Support: Tracks pagination state for loading more replies

    • Change Handlers: Internal handlers for processing WebSocket events

    • Method Detail

      • getReplies

         abstract StateFlow<List<ThreadedCommentData>> getReplies()

        The current collection of replies for the comment.

        This list contains all the replies that have been loaded for the comment. Changes to this array are published and can be observed for UI updates.

      • getPagination

         abstract PaginationData getPagination()

        The pagination information from the last query.

        This contains the pagination cursors (next and previous) that can be used to fetch additional pages of replies. The pagination data is automatically updated when new pages are loaded.