Skip to content

Commit

Permalink
Merge pull request #66 from SSchulze1989/develop
Browse files Browse the repository at this point in the history
v 0.9.0
  • Loading branch information
SSchulze1989 authored Sep 10, 2023
2 parents 64f21ca + 747d086 commit 660a971
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 16 deletions.
14 changes: 14 additions & 0 deletions src/iRLeagueApiCore.Common/Enums/BonusPointType.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
public enum BonusPointType
{
Position,
QualyPosition,
FastestLap,
FastestAverageLap,
CleanestDriver,
NoIncidents,
MostPositionsGained,
MostPositionsLost,
LeadOneLap,
LeadMostLaps,
Custom = 999,
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@ public class PutChampSeasonModel : PostChampSeasonModel
public ICollection<ResultConfigInfoModel> ResultConfigs { get; set; } = new List<ResultConfigInfoModel>();
[DataMember]
public ResultConfigInfoModel? DefaultResultConfig { get; set; }
[DataMember]
public ICollection<ResultFilterModel> Filters { get; set; } = new List<ResultFilterModel>();
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
namespace iRLeagueApiCore.Common.Models;

[DataContract]
public class BonusPointModel
{
[DataMember]
public BonusPointType Type { get; set; }
[DataMember]
public double Value { get; set; }
[DataMember]
public double Points { get; set; }
[DataMember]
public ICollection<FilterConditionModel> Conditions { get; set; } = new List<FilterConditionModel>();
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class PostPointRuleModel
[DataMember]
public IList<int> PointsPerPlace { get; set; } = new List<int>();
[DataMember]
public IDictionary<string, int> BonusPoints { get; set; } = new Dictionary<string, int>();
public ICollection<BonusPointModel> BonusPoints { get; set; } = new List<BonusPointModel>();
[DataMember]
public int MaxPoints { get; set; }
public int PointDropOff { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,5 @@ public sealed class ResultFilterModel
[DataMember]
public long FilterOptionId { get; set; }
[DataMember]
public FilterType FilterType { get; set; }
[DataMember]
public string ColumnPropertyName { get; set; } = string.Empty;
[DataMember]
public ComparatorType Comparator { get; set; }
/// <summary>
/// <para>Action performed on values that match the conditions</para>
/// <para>- Keep: Keep the entries that match and remove all other entries</para>
/// <para>- Remove: Remove the entries that match and keep other entries</para>
/// </summary>
[DataMember]
public MatchedValueAction Action { get; set; }
[DataMember]
public ICollection<string> FilterValues { get; set; } = new List<string>();
public FilterConditionModel Condition { get; set; } = new();
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ public class StandingRowModel
[DataMember]
public int RacesCounted { get; set; }
[DataMember]
public int RacesScored { get; set; }
[DataMember]
public int RacesInPoints { get; set; }
[DataMember]
public int DroppedResultCount { get; set; }
[DataMember]
public int ClubId { get; set; }
Expand Down
2 changes: 1 addition & 1 deletion src/iRLeagueApiCore.Common/iRLeagueApiCore.Common.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<OutputType>Library</OutputType>
<TargetFramework>net6.0</TargetFramework>
<PackageId>iRLeagueApiCore.Common</PackageId>
<Version>0.8.1</Version>
<Version>0.9.0</Version>
<Authors>Simon Schulze</Authors>
<Company>Simon Schulze</Company>
<ImplicitUsings>enable</ImplicitUsings>
Expand Down

0 comments on commit 660a971

Please sign in to comment.