Vereinsmeisterschaften  22aa7800eae54b428d40e835886cefe1fdefdfdf
This is a software that can be used to manage the internal competition of the swimming club Illertissen called "Vereinsmeisterschaften".
Loading...
Searching...
No Matches
Vereinsmeisterschaften.ViewModels.ResultsViewModel Class Reference

ViewModel for the results page, showing the sorted persons based on their scores. More...

Inheritance diagram for Vereinsmeisterschaften.ViewModels.ResultsViewModel:
Vereinsmeisterschaften.Contracts.ViewModels.INavigationAware

Public Member Functions

 ResultsViewModel (IScoreService scoreService)
 Constructor of the results view model.
 
void OnNavigatedTo (object parameter)
 OnNavigatedTo method to handle navigation to this object.
Parameters
parameterParameter that can be passed by the caller

 
void OnNavigatedFrom ()
 OnNavigatedFrom method to handle navigation away from this object.
 

Properties

ResultTypes ResultType [get, set]
 Type of result to view.
 
List< PersonStartPodiumGoldStarts [get]
 List with all starts on the gold podium place (highest scores)
 
List< PersonStartPodiumSilverStarts [get]
 List with all starts on the silver podium place (second highest scores)
 
List< PersonStartPodiumBronzeStarts [get]
 List with all starts on the bronze podium place (third highest scores)
 

Private Member Functions

void updatePersonsAndPlaces ()
 

Private Attributes

List< Person_sortedPersons
 List with all persons sorted by score.
 
ResultTypes _resultType = ResultTypes.Overall
 
IScoreService _scoreService
 

Detailed Description

ViewModel for the results page, showing the sorted persons based on their scores.

Definition at line 14 of file ResultsViewModel.cs.

Constructor & Destructor Documentation

◆ ResultsViewModel()

Vereinsmeisterschaften.ViewModels.ResultsViewModel.ResultsViewModel ( IScoreService scoreService)

Constructor of the results view model.

Parameters
scoreServiceIScoreService

Definition at line 59 of file ResultsViewModel.cs.

Member Function Documentation

◆ OnNavigatedFrom()

void Vereinsmeisterschaften.ViewModels.ResultsViewModel.OnNavigatedFrom ( )

OnNavigatedFrom method to handle navigation away from this object.

Implements Vereinsmeisterschaften.Contracts.ViewModels.INavigationAware.

Definition at line 73 of file ResultsViewModel.cs.

◆ OnNavigatedTo()

void Vereinsmeisterschaften.ViewModels.ResultsViewModel.OnNavigatedTo ( object parameter)

OnNavigatedTo method to handle navigation to this object.

Parameters
parameterParameter that can be passed by the caller

Implements Vereinsmeisterschaften.Contracts.ViewModels.INavigationAware.

Definition at line 67 of file ResultsViewModel.cs.

◆ updatePersonsAndPlaces()

void Vereinsmeisterschaften.ViewModels.ResultsViewModel.updatePersonsAndPlaces ( )
private

Definition at line 77 of file ResultsViewModel.cs.

Member Data Documentation

◆ _resultType

ResultTypes Vereinsmeisterschaften.ViewModels.ResultsViewModel._resultType = ResultTypes.Overall
private

Definition at line 22 of file ResultsViewModel.cs.

◆ _scoreService

IScoreService Vereinsmeisterschaften.ViewModels.ResultsViewModel._scoreService
private

Definition at line 53 of file ResultsViewModel.cs.

◆ _sortedPersons

List<Person> Vereinsmeisterschaften.ViewModels.ResultsViewModel._sortedPersons
private

List with all persons sorted by score.

Definition at line 20 of file ResultsViewModel.cs.

Property Documentation

◆ PodiumBronzeStarts

List<PersonStart> Vereinsmeisterschaften.ViewModels.ResultsViewModel.PodiumBronzeStarts
get

List with all starts on the bronze podium place (third highest scores)

Definition at line 51 of file ResultsViewModel.cs.

◆ PodiumGoldStarts

List<PersonStart> Vereinsmeisterschaften.ViewModels.ResultsViewModel.PodiumGoldStarts
get

List with all starts on the gold podium place (highest scores)

Definition at line 41 of file ResultsViewModel.cs.

◆ PodiumSilverStarts

List<PersonStart> Vereinsmeisterschaften.ViewModels.ResultsViewModel.PodiumSilverStarts
get

List with all starts on the silver podium place (second highest scores)

Definition at line 46 of file ResultsViewModel.cs.

◆ ResultType

ResultTypes Vereinsmeisterschaften.ViewModels.ResultsViewModel.ResultType
getset

Type of result to view.

Definition at line 26 of file ResultsViewModel.cs.


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