• Get user message list handler

    Parameters

    • chatService: ChatDataService

      injected service use to handle the chat related operations

      • getPaginatedUserMessages
    • paginationConfig: defaultChat.PaginationConfig

      injected pagination config

    • logger: Logger

      injected logger used to handle the logging

    • context: AdapterHandlerContext

      request context [headers, body, params, query].

    Returns Promise<adapter.AdapterHandlerResponse>

    200 Status OK

    • data: user message list

    Description

    This handler will get user message list by applying the following steps in sequence:

    1. Get paginated user message list by userId (chatService.getPaginatedUserMessages)

    2. Return the user message list

    Throws

    500 NBError Internal Server Error

    • userId not defined

Generated using TypeDoc