Skip to content

Commit

Permalink
Support commonRating and agreedRating, render then in debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-yagodin committed Jul 8, 2021
1 parent 7545e5a commit 10b3806
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions R7.Enrollment/Data/TandemXmlModelFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ public Entrant CreateCompetitionEntrant (XElement xelem)
Snils = xelem.Attribute ("snils")?.Value,
Position = TryParseInt (xelem.Attribute ("position")?.Value) ?? 0,
AbsolutePosition = TryParseInt (xelem.Attribute ("absolutePosition")?.Value) ?? 0,
CommonRating = TryParseInt (xelem.Attribute ("commonRating")?.Value) ?? 0,
AgreedRating = TryParseInt (xelem.Attribute ("agreedRating")?.Value) ?? 0,
FinalMark = TryParseInt (xelem.Attribute ("finalMark")?.Value) ?? 0,
AchievementMark = TryParseInt (xelem.Attribute ("achievementMark")?.Value) ?? 0,
OriginalIn = TryParseBool (xelem.Attribute ("originalIn")?.Value) ?? false,
Expand Down
4 changes: 4 additions & 0 deletions R7.Enrollment/Models/ConsolidatedEntrant.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ public class ConsolidatedEntrant: IEntrant

public int AbsolutePosition => _entrant.AbsolutePosition;

public int CommonRating => _entrant.CommonRating;

public int AgreedRating => _entrant.AgreedRating;

public int FinalMark => _entrant.FinalMark;

public int AchievementMark => _entrant.AchievementMark;
Expand Down
4 changes: 4 additions & 0 deletions R7.Enrollment/Models/Entrant.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ public class Entrant : IEntrant

public int AbsolutePosition { get; set; }

public int CommonRating { get; set; }

public int AgreedRating { get; set; }

public int FinalMark { get; set; }

public int AchievementMark { get; set; }
Expand Down
4 changes: 4 additions & 0 deletions R7.Enrollment/Models/IEntrant.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ public interface IEntrant

int AbsolutePosition { get; }

int CommonRating { get; }

int AgreedRating { get; }

int FinalMark { get; }

int AchievementMark { get; }
Expand Down

0 comments on commit 10b3806

Please sign in to comment.