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

Model for the Account page. More...

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

Public Member Functions

 AccountModel (IConfiguration configuration, IHubContext< NotificationHub > hubContext)
 Initializes a new instance of the AccountModel class. More...
 
IActionResult OnGet ()
 The action that occurs when the user visits the account page. More...
 

Properties

List< Dictionary< string, object > >? AuctionsList [get, set]
 The list of auctions of the account to display. More...
 

Private Attributes

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

Detailed Description

Model for the Account page.

Constructor & Destructor Documentation

◆ AccountModel()

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

Initializes a new instance of the AccountModel class.

Parameters
configurationThe IConfiguration instance.
hubContextThe IHubContext instance.

Member Function Documentation

◆ OnGet()

IActionResult BetterFinds.Pages.AccountModel.OnGet ( )
inline

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

Checks if the user is the owner of the account, if so add edit option by redirecting to the current user my account page.

Checks if the client exists, if not, redirects to the not found error (404) page.

Displays the following information about the client:

  • Personal Information
  • Profile Picture
  • List of Auctions
  • Number of Bids
Returns
A task that represents the action of loading the account page.

Member Data Documentation

◆ configuration

readonly IConfiguration BetterFinds.Pages.AccountModel.configuration
private

The IConfiguration instance.

◆ hubContext

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

The IHubContext instance.

Property Documentation

◆ AuctionsList

List<Dictionary<string, object> >? BetterFinds.Pages.AccountModel.AuctionsList
getset

The list of auctions of the account to display.


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