Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v 0.9.0 #66

Merged
merged 17 commits into from
Sep 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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