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
CompetitionDistanceRuleValidationIssue.cs
1using System;
2using System.Collections.Generic;
3using System.Text;
4using System.Xml.Linq;
5
7{
12 {
13 #region Issue Types
14
19 {
20 AgeGap,
21 Overlap,
22 UnreachableRule
23 }
24
25 #endregion
26
27 // +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
28
33
37 public SwimmingStyles SwimmingStyle { get; set; }
38
42 public byte MinAge { get; set; }
43
47 public byte MaxAge { get; set; }
48
52 public CompetitionDistanceRule Rule1 { get; set; }
53
57 public CompetitionDistanceRule Rule2 { get; set; }
58
59 // +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
60
61 #region Equality, HashCode
62
68 public override bool Equals(object obj)
69 => obj is CompetitionDistanceRuleValidationIssue i && (i.IssueType, i.SwimmingStyle, i.MinAge, i.MaxAge).Equals((IssueType, SwimmingStyle, MinAge, MaxAge));
70
77 => Equals((object)other);
78
85 public override int GetHashCode()
86 => base.GetHashCode();
87 //=> (IssueType, SwimmingStyle, MinAge, MaxAge).GetHashCode();
88
89 #endregion
90 }
91}
Class describing one issue during the validation of the CompetitionDistanceRule
SwimmingStyles SwimmingStyle
SwimmingStyles for this CompetitionDistanceRuleValidationIssue
bool Equals(CompetitionDistanceRuleValidationIssue other)
Indicates wheather the current object is equal to another object of the same type.
override int GetHashCode()
Serves as the default hash function.
CompetitionDistanceRuleValidationIssueType IssueType
CompetitionDistanceRuleValidationIssueType for this CompetitionDistanceRuleValidationIssue
override bool Equals(object obj)
Compare if two are equal.
SwimmingStyles
Available swimming styles.