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
IPersonService.cs
1using System.Collections.ObjectModel;
2using System.ComponentModel;
4
6{
10 public interface IPersonService : INotifyPropertyChanged, ISaveable
11 {
18
25
32
37 ObservableCollection<Person> GetPersons();
38
42 void ClearAll();
43
49
54 void AddPerson(Person person);
55
60 void RemovePerson(Person person);
61
66 int PersonCount { get; }
67
71 int PersonStarts { get; }
72
77
85 List<PersonStart> GetAllPersonStarts(PersonStartFilters filter = PersonStartFilters.None, object filterParameter = null, bool onlyValidStarts = false);
86
91
95 int NumberFriendGroups { get; }
96 }
97}
Class describing a person.
Definition Person.cs:12
Interface for a service used to get and store a list of objects.
Interface for a service used to get and store a list of Person objects.
void AddPerson(Person person)
Add a new Person to the list of Persons.
List< PersonStart > GetAllPersonStarts(PersonStartFilters filter=PersonStartFilters.None, object filterParameter=null, bool onlyValidStarts=false)
Get all PersonStart objects for all Person objects that are not null.
void RemovePerson(Person person)
Remove the given Person from the list of Persons.
void UpdateAllFriendReferencesFromFriendGroupIDs()
Loop all Person objects and update their friend references (Person.Friends) from the friend group IDs...
void SetRaceServiceObj(IRaceService raceService)
Save the reference to the IRaceService object.
ObservableCollection< Person > GetPersons()
Return all available Persons.
void SetCompetitionServiceObj(ICompetitionService competitionService)
Save the reference to the ICompetitionService object.
void SetScoreServiceObj(IScoreService scoreService)
Save the reference to the IScoreService object.
void ResetToLoadedState()
Reset the list of Persons to the state when the Load(string, CancellationToken) method was called.
int NumberFriendGroups
Return the number of friend groups.
int PersonStarts
Return the total number of starts of all persons.
void UpdateHasDuplicatesForPersons()
Find all duplicate Person objects and update the Person.HasDuplicates flags.
Interface for a service used to manage Race and RacesVariant objects.
Interface for a service used to calculate the scores for all persons.
PersonStartFilters
Available filters for PersonStart objects.