Skip to content

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 ​

PreferenceStore.list


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 ​

PreferenceStore.remove


set() ​

> set(preference): Promise<void>

Defined in: notifications/src/preferences.ts:29

Parameters ​

preference ​

NotificationPreference

Returns ​

Promise<void>

Implementation of ​

PreferenceStore.set

Released under the MIT License.