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
ICompetitionDistanceRuleService.cs
1using System.Collections.ObjectModel;
2using System.ComponentModel;
4
6{
10 public interface ICompetitionDistanceRuleService : INotifyPropertyChanged, ISaveable
11 {
18
23 ObservableCollection<CompetitionDistanceRule> GetCompetitionDistanceRules();
24
28 void ClearAll();
29
35
41
47
54 ushort GetCompetitionDistanceFromRules(byte age, SwimmingStyles swimmingStyle);
55
60 List<CompetitionDistanceRuleValidationIssue> ValidateRules();
61 }
62}
Interface for a service used to get and store a list of CompetitionDistanceRule objects.
void SetCompetitionServiceObj(ICompetitionService competitionService)
Save the reference to the ICompetitionService object.
List< CompetitionDistanceRuleValidationIssue > ValidateRules()
Check if all rules are valid and return a list of found issues.
ObservableCollection< CompetitionDistanceRule > GetCompetitionDistanceRules()
Return all available objects.
void AddDistanceRule(CompetitionDistanceRule distanceRule)
Add a new CompetitionDistanceRule to the CompetitionDistanceRules list.
void RemoveDistanceRule(CompetitionDistanceRule distanceRule)
Remove the given CompetitionDistanceRule from the Competition list.
ushort GetCompetitionDistanceFromRules(byte age, SwimmingStyles swimmingStyle)
Try to find a matching rule for the requested age and swimming style.
void ResetToLoadedState()
Reset the list of to the state when the method was called.
Interface for a service used to get and store a list of objects.
SwimmingStyles
Available swimming styles.