Class ChatThreadUtilsImpl
Constructors
constructor
- new ChatThreadUtilsImpl(appConfig: ApplicationConfiguration, logger: Logger): ChatThreadUtilsImpl
-
Parameters
-
appConfig: ApplicationConfiguration
-
logger: Logger
Methods
forEachParticipantInEachChatThread
- forEachParticipantInEachChatThread(consumer: ChatThreadParticipantConsumer): void | Promise<void>
-
Parameters
-
consumer: ChatThreadParticipantConsumer
Returns void
|
Promise<void>
getChatThreadIds
- getChatThreadIds(): FacebookId[]
getFirstName
- getFirstName(userId: FacebookId): string
-
Parameters
Returns string
getFirstNameByMessage
- getFirstNameByMessage(msg: Message): string
-
Parameters
Returns string
getName
- getName(userId: FacebookId): string
-
Parameters
Returns string
getNameByMessage
- getNameByMessage(msg: Message): string
-
Parameters
Returns string
getNickname
- getNickname(threadId: FacebookId, participantId: FacebookId): string | undefined
-
Parameters
-
threadId: FacebookId
-
participantId: FacebookId
Returns string
|
undefined
getNicknameByMessage
- getNicknameByMessage(msg: Message): string | undefined
-
Parameters
Returns string
|
undefined
getParticipantIdByAddressee
- getParticipantIdByAddressee(threadId: FacebookId, addressee: string): FacebookId | undefined
-
Parameters
-
threadId: FacebookId
-
addressee: string
Returns FacebookId
|
undefined