BetterFinds
Public Member Functions | Public Attributes | Private Attributes | List of all members
BetterFinds.Pages.NotificationsModel Class Reference

Model for the Notifications page. This class is decorated with the Authorize attribute. More...

Inheritance diagram for BetterFinds.Pages.NotificationsModel:
Inheritance graph
[legend]
Collaboration diagram for BetterFinds.Pages.NotificationsModel:
Collaboration graph
[legend]

Public Member Functions

 NotificationsModel (IConfiguration configuration)
 Initializes a new instance of the NotificationsModel class. More...
 
IActionResult OnGet ()
 Shows the client's notifications. More...
 

Public Attributes

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...
 

Private Attributes

readonly IConfiguration configuration
 The IConfiguration instance. More...
 

Detailed Description

Model for the Notifications page. This class is decorated with the Authorize attribute.

Constructor & Destructor Documentation

◆ NotificationsModel()

BetterFinds.Pages.NotificationsModel.NotificationsModel ( IConfiguration  configuration)

Initializes a new instance of the NotificationsModel class.

Parameters
configurationThe IConfiguration instance.

Member Function Documentation

◆ 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.

Member Data Documentation

◆ 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: