• Get topic message list handler

    Parameters

    • chatService: ChatDataService

      injected service use to handle the chat related operations

      • getPaginatedTopicMessages
    • authSecrets: AuthSecrets

      injected auth secrets use to handle the authentication

    • authenticate: AuthenticationFunction
    • 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: topic message list

    Description

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

    1. Authenticate the request (authenticate)

    2. Get paginated topic message list by topicId (chatService.getPaginatedTopicMessages)

    3. Return the topic message list

    Throws

    500 NBError Internal Server Error

    • topicId not defined

Generated using TypeDoc