Skip to content

Commit

Permalink
Merge pull request #77 from SSchulze1989/feature/point-formula
Browse files Browse the repository at this point in the history
Add point rule formula type
  • Loading branch information
SSchulze1989 authored Feb 25, 2024
2 parents a64c118 + aa25d43 commit 261c278
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
7 changes: 7 additions & 0 deletions src/iRLeagueApiCore.Common/Enums/PointRuleType.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
namespace iRLeagueApiCore.Common.Enums;
public enum PointRuleType
{
PointList,
MaxPointsDropOff,
Formula,
};
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,14 @@ public class PostPointRuleModel
[DataMember]
public string Name { get; set; } = string.Empty;
[DataMember]
public PointRuleType RuleType { get; set; }
[DataMember]
public IList<int> PointsPerPlace { get; set; } = new List<int>();
[DataMember]
public ICollection<BonusPointModel> BonusPoints { get; set; } = new List<BonusPointModel>();
[DataMember]
public string Formula { get; set; } = string.Empty;
[DataMember]
public int MaxPoints { get; set; }
public int PointDropOff { get; set; }
public ICollection<SortOptions> PointsSortOptions { get; set; } = new List<SortOptions>();
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.11.0</Version>
<Version>0.11.1-dev.1</Version>
<Authors>Simon Schulze</Authors>
<Company>Simon Schulze</Company>
<ImplicitUsings>enable</ImplicitUsings>
Expand Down

0 comments on commit 261c278

Please sign in to comment.