Table of Contents

Interface INotificationStore

Namespace
BlazOrbit.Notifications
Assembly
BlazOrbit.Notifications.dll

Storage strategy for INotificationCenter. Default implementation is in-memory - consumers wanting localStorage / IndexedDB / server-side persistence register their own under AddBlazOrbitNotifications().

public interface INotificationStore

Methods

Add(BOBNotification)

Persists a new entry.

void Add(BOBNotification notification)

Parameters

notification BOBNotification

All()

Snapshot of every stored notification, newest first.

IReadOnlyList<BOBNotification> All()

Returns

IReadOnlyList<BOBNotification>

Clear()

Removes every entry.

void Clear()

MarkAllRead()

Marks every entry as read.

void MarkAllRead()

MarkRead(string)

Marks an entry as read by id; returns true when found.

bool MarkRead(string id)

Parameters

id string

Returns

bool

Remove(string)

Removes a single entry; returns true when found.

bool Remove(string id)

Parameters

id string

Returns

bool