-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #53 from SSchulze1989/develop
v 0.7.2
- Loading branch information
Showing
5 changed files
with
46 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
src/iRLeagueApiCore.Common/Models/ResultConfigurations/AutoPenaltyConfiguration.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
namespace iRLeagueApiCore.Common.Models; | ||
|
||
[DataContract] | ||
public sealed class AutoPenaltyConfiguration | ||
{ | ||
[DataMember] | ||
public long LeagueId { get; set; } | ||
[DataMember] | ||
public long PenaltyConfigId { get; set; } | ||
[DataMember] | ||
public string Description { get; set; } = string.Empty; | ||
[DataMember] | ||
public PenaltyType Type { get; set; } | ||
[DataMember(EmitDefaultValue = false)] | ||
public int Points { get; set; } | ||
[DataMember(EmitDefaultValue = false)] | ||
public TimeSpan Time { get; set; } | ||
[DataMember(EmitDefaultValue = false)] | ||
public int Positions { get; set; } | ||
[DataMember] | ||
public ICollection<FilterConditionModel> Conditions { get; set; } = new List<FilterConditionModel>(); | ||
} |
16 changes: 16 additions & 0 deletions
16
src/iRLeagueApiCore.Common/Models/ResultConfigurations/FilterConditionModel.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
namespace iRLeagueApiCore.Common.Models; | ||
|
||
[DataContract] | ||
public sealed class FilterConditionModel | ||
{ | ||
[DataMember] | ||
public FilterType FilterType { get; set; } | ||
[DataMember] | ||
public string ColumnPropertyName { get; set; } = string.Empty; | ||
[DataMember] | ||
public ComparatorType Comparator { get; set; } | ||
[DataMember] | ||
public ICollection<string> FilterValues { get; set; } = new List<string>(); | ||
[DataMember] | ||
public MatchedValueAction Action { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters