basalt / notifications/src / MemoryPreferenceStore
Class: MemoryPreferenceStore
Defined in: notifications/src/preferences.ts:24
Implements
Constructors
Constructor
> new MemoryPreferenceStore(): MemoryPreferenceStore
Returns
MemoryPreferenceStore
Methods
list()
> list(userId): Promise<NotificationPreference[]>
Defined in: notifications/src/preferences.ts:32
All preferences for a user.
Parameters
userId
string
Returns
Promise<NotificationPreference[]>
Implementation of
remove()
> remove(userId, notification, channel): Promise<void>
Defined in: notifications/src/preferences.ts:35
Parameters
userId
string
notification
string
channel
string
Returns
Promise<void>
Implementation of
set()
> set(preference): Promise<void>
Defined in: notifications/src/preferences.ts:29
Parameters
preference
Returns
Promise<void>