Class: SimpleChatStore<AdditionalMessageOptions>
Extends
BaseChatStore
<AdditionalMessageOptions
>
Type Parameters
• AdditionalMessageOptions extends object
= object
Constructors
new SimpleChatStore()
new SimpleChatStore<
AdditionalMessageOptions
>():SimpleChatStore
<AdditionalMessageOptions
>
Returns
SimpleChatStore
<AdditionalMessageOptions
>
Inherited from
Methods
addMessage()
addMessage(
key
,message
,idx
?):void
Parameters
• key: string
• message: ChatMessage
<AdditionalMessageOptions
>
• idx?: number
Returns
void
Overrides
Defined in
packages/core/storage/chat-store/dist/index.d.ts:16
deleteMessage()
deleteMessage(
key
,idx
):void
Parameters
• key: string
• idx: number
Returns
void
Overrides
Defined in
packages/core/storage/chat-store/dist/index.d.ts:18
deleteMessages()
deleteMessages(
key
):void
Parameters
• key: string
Returns
void
Overrides
Defined in
packages/core/storage/chat-store/dist/index.d.ts:17
getKeys()
getKeys():
MapIterator
<string
>
Returns
MapIterator
<string
>
Overrides
Defined in
packages/core/storage/chat-store/dist/index.d.ts:19
getMessages()
getMessages(
key
):ChatMessage
<AdditionalMessageOptions
>[]
Parameters
• key: string
Returns
ChatMessage
<AdditionalMessageOptions
>[]
Overrides
Defined in
packages/core/storage/chat-store/dist/index.d.ts:15
setMessages()
setMessages(
key
,messages
):void
Parameters
• key: string
• messages: ChatMessage
<AdditionalMessageOptions
>[]
Returns
void
Overrides
Defined in
packages/core/storage/chat-store/dist/index.d.ts:14