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

Model for the Index page. More...

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

Public Member Functions

 IndexModel (IConfiguration configuration, IHubContext< NotificationHub > hubContext)
 Initializes a new instance of the IndexModel class. More...
 
void OnGet (string sort)
 The action that occurs when the user visits the index page. More...
 

Properties

string CurrentSort = "" [get, set]
 The current sort order of the auctions. More...
 
List< Dictionary< string, object > >? Auctions [get, set]
 The list of auctions to display. More...
 

Private Attributes

readonly IConfiguration configuration
 The IConfiguration instance. More...
 
readonly IHubContext< NotificationHubhubContext
 The IHubContext instance. More...
 

Detailed Description

Model for the Index page.

Constructor & Destructor Documentation

◆ IndexModel()

BetterFinds.Pages.IndexModel.IndexModel ( IConfiguration  configuration,
IHubContext< NotificationHub hubContext 
)
inline

Initializes a new instance of the IndexModel class.

Parameters
configurationThe IConfiguration instance.
hubContextThe IHubContext instance.

Member Function Documentation

◆ OnGet()

void BetterFinds.Pages.IndexModel.OnGet ( string  sort)
inline

The action that occurs when the user visits the index page.

Displays the list of auctions sorted by the default sort order. The default sort is by the auction's end date, in ascending order. To see available sort options, see Utils.Auctions.GetAuctions.

Parameters
sortThe sort order to use.

Member Data Documentation

◆ configuration

readonly IConfiguration BetterFinds.Pages.IndexModel.configuration
private

The IConfiguration instance.

◆ hubContext

readonly IHubContext<NotificationHub> BetterFinds.Pages.IndexModel.hubContext
private

The IHubContext instance.

Property Documentation

◆ Auctions

List<Dictionary<string, object> >? BetterFinds.Pages.IndexModel.Auctions
getset

The list of auctions to display.

◆ CurrentSort

string BetterFinds.Pages.IndexModel.CurrentSort = ""
getset

The current sort order of the auctions.


The documentation for this class was generated from the following file: