-
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.
- Loading branch information
1 parent
b8cd628
commit a2c7389
Showing
3 changed files
with
34 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,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 int Number { get; set; } | ||
[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 MemberInfoModel? Member { get; set; } | ||
[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