-
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 #50 from SSchulze1989/develop
v 0.7.0
- Loading branch information
Showing
6 changed files
with
65 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
namespace iRLeagueApiCore.Common.Enums; | ||
public enum PenaltyType | ||
{ | ||
Points, | ||
Position, | ||
Time, | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
namespace iRLeagueApiCore.Common.Models; | ||
|
||
[DataContract] | ||
public sealed class PenaltyModel : PutPenaltyModel | ||
{ | ||
[DataMember] | ||
public long ResultRowId { get; set; } | ||
[DataMember] | ||
public long? AddPenaltyId { get; set; } | ||
[DataMember(EmitDefaultValue = false)] | ||
public long? ReviewId { get; set; } | ||
[DataMember(EmitDefaultValue = false)] | ||
public long? ReviewVoteId { get; set; } | ||
[DataMember] | ||
public long EventId { get; set; } | ||
[DataMember] | ||
public int SessionNr { get; set; } | ||
[DataMember] | ||
public string SessionName { get; set; } = string.Empty; | ||
[DataMember] | ||
public long MemberId { get; set; } | ||
[DataMember] | ||
public string Firstname { get; set; } = string.Empty; | ||
[DataMember] | ||
public string Lastname { get; set; } = string.Empty; | ||
} |
20 changes: 20 additions & 0 deletions
20
src/iRLeagueApiCore.Common/Models/Reviews/PostPenaltyModel.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,20 @@ | ||
namespace iRLeagueApiCore.Common.Models; | ||
|
||
[DataContract] | ||
public class PostPenaltyModel | ||
{ | ||
[DataMember] | ||
public string Lap { get; set; } = string.Empty; | ||
[DataMember] | ||
public string Corner { get; set; } = string.Empty; | ||
[DataMember] | ||
public string Reason { 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; } | ||
} |
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,6 @@ | ||
namespace iRLeagueApiCore.Common.Models; | ||
|
||
[DataContract] | ||
public class PutPenaltyModel : PostPenaltyModel | ||
{ | ||
} |
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