-
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 #75 from SSchulze1989/develop
v 0.10.0
- Loading branch information
Showing
10 changed files
with
59 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,5 @@ public enum PenaltyType | |
Points, | ||
Position, | ||
Time, | ||
Disqualification, | ||
} |
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,10 @@ | ||
namespace iRLeagueApiCore.Common.Models.Results; | ||
|
||
[DataContract] | ||
public sealed class CarListModel | ||
{ | ||
[DataMember] | ||
public bool IsTeamEvent { get; set; } | ||
[DataMember] | ||
public IEnumerable<EventCarInfoModel> Cars { get; set; } = Array.Empty<EventCarInfoModel>(); | ||
} |
23 changes: 23 additions & 0 deletions
23
src/iRLeagueApiCore.Common/Models/Results/EventCarInfoModel.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,23 @@ | ||
namespace iRLeagueApiCore.Common.Models.Results; | ||
|
||
/// <summary> | ||
/// Contains information about a specific car in an event and it's driver(s) or team | ||
/// </summary> | ||
[DataContract] | ||
public sealed class EventCarInfoModel | ||
{ | ||
[DataMember] | ||
public string Number { get; set; } = string.Empty; | ||
[DataMember] | ||
public string Car { get; set; } = string.Empty; | ||
[DataMember] | ||
public int CarId { get; set; } | ||
[DataMember] | ||
public int ClassId { get;} | ||
[DataMember] | ||
public string Class { get; set; } = string.Empty; | ||
[DataMember] | ||
public IEnumerable<MemberInfoModel> Members { get; set; } = Array.Empty<MemberInfoModel>(); | ||
[DataMember] | ||
public TeamInfoModel? Team { 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
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
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,12 @@ | ||
namespace iRLeagueApiCore.Common.Models; | ||
|
||
[DataContract] | ||
public sealed class TeamInfoModel | ||
{ | ||
[DataMember] | ||
public long TeamId { get; set; } | ||
[DataMember] | ||
public string Name { get; set; } = string.Empty; | ||
[DataMember] | ||
public string TeamColor { get; set; } = string.Empty; | ||
} |
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