Model for the Notifications page. This class is decorated with the Authorize attribute.
More...
|
List< Dictionary< string, object > > | Notifications = [] |
| The list of notifications to display. More...
|
|
bool | ShowAll = false |
| Whether to show all notifications or only unread ones. More...
|
|
Model for the Notifications page. This class is decorated with the Authorize attribute.
◆ NotificationsModel()
BetterFinds.Pages.NotificationsModel.NotificationsModel |
( |
IConfiguration |
configuration | ) |
|
Initializes a new instance of the NotificationsModel class.
- Parameters
-
configuration | The IConfiguration instance. |
◆ OnGet()
IActionResult BetterFinds.Pages.NotificationsModel.OnGet |
( |
| ) |
|
|
inline |
Shows the client's notifications.
This page gets the client's notifications from the database and displays them.
The notifications can be filtered to show only unread notifications or all notifications, and can be marked as read individually or all at once. The notifications can be sorted by a specified sort order. To see available filter and sort options, see Utils.Notification.GetNotifications.
This page is automatically refreshed whena new notification is received through SignalR.
- Returns
- A task that represents the action of loading the Notifications page.
◆ configuration
readonly IConfiguration BetterFinds.Pages.NotificationsModel.configuration |
|
private |
The IConfiguration instance.
◆ Notifications
List<Dictionary<string, object> > BetterFinds.Pages.NotificationsModel.Notifications = [] |
The list of notifications to display.
◆ ShowAll
bool BetterFinds.Pages.NotificationsModel.ShowAll = false |
Whether to show all notifications or only unread ones.
The documentation for this class was generated from the following file:
- BetterFinds/Pages/Notifications.cshtml.cs