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

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

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

Public Member Functions

 MyAuctionsModel (IConfiguration configuration, IHubContext< NotificationHub > hubContext)
 Initializes a new instance of the MyAuctionsModel class. More...
 
void OnGet (string sort)
 Shows the client's auctions. More...
 

Properties

string CurrentSort = "" [get, set]
 The current sort. More...
 
int CurrentOccurring = 0 [get, set]
 The current occurring. More...
 
List< Dictionary< string, object > >? MyAuctions [get, set]
 The list of auctions. More...
 

Private Attributes

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

Detailed Description

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

Constructor & Destructor Documentation

◆ MyAuctionsModel()

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

Initializes a new instance of the MyAuctionsModel class.

Parameters
configurationThe IConfiguration instance.
hubContextThe IHubContext instance.

Member Function Documentation

◆ OnGet()

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

Shows the client's auctions.

This page gets the client's auctions from the database and displays them by the specified sort order. To see available sort options, see Utils.Auctions.GetAuctions.

Parameters
sortThe sort order to use.

returns>A task that represents the action of loading the MyAuctions page.

Member Data Documentation

◆ configuration

readonly IConfiguration BetterFinds.Pages.MyAuctionsModel.configuration
private

The IConfiguration instance.

◆ hubContext

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

The IHubContext instance.

Property Documentation

◆ CurrentOccurring

int BetterFinds.Pages.MyAuctionsModel.CurrentOccurring = 0
getset

The current occurring.

◆ CurrentSort

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

The current sort.

◆ MyAuctions

List<Dictionary<string, object> >? BetterFinds.Pages.MyAuctionsModel.MyAuctions
getset

The list of auctions.


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