diff --git a/src/iRLeagueApiCore.Common/Enums/PenaltyType.cs b/src/iRLeagueApiCore.Common/Enums/PenaltyType.cs index a4e28d0..b0903da 100644 --- a/src/iRLeagueApiCore.Common/Enums/PenaltyType.cs +++ b/src/iRLeagueApiCore.Common/Enums/PenaltyType.cs @@ -4,4 +4,5 @@ public enum PenaltyType Points, Position, Time, + Disqualification, } diff --git a/src/iRLeagueApiCore.Common/Enums/RaceStatus.cs b/src/iRLeagueApiCore.Common/Enums/RaceStatus.cs index b941bec..3b9cfca 100644 --- a/src/iRLeagueApiCore.Common/Enums/RaceStatus.cs +++ b/src/iRLeagueApiCore.Common/Enums/RaceStatus.cs @@ -25,7 +25,7 @@ namespace iRLeagueApiCore.Common.Enums; public enum RaceStatus { Running, - Disconnected, - Disqualified, + Disconnected = 32, + Disqualified = 29, Unknown } diff --git a/src/iRLeagueApiCore.Common/Models/Results/ResultRowModel.cs b/src/iRLeagueApiCore.Common/Models/Results/ResultRowModel.cs index a05f3ed..ce4cd5d 100644 --- a/src/iRLeagueApiCore.Common/Models/Results/ResultRowModel.cs +++ b/src/iRLeagueApiCore.Common/Models/Results/ResultRowModel.cs @@ -97,7 +97,7 @@ public class ResultRowModel /// Driver status at the end of the race (checkered flag) /// [DataMember] - public int Status { get; set; } + public RaceStatus Status { get; set; } /// /// Time set in qualifying (only available with attached qualy) /// diff --git a/src/iRLeagueApiCore.Common/iRLeagueApiCore.Common.csproj b/src/iRLeagueApiCore.Common/iRLeagueApiCore.Common.csproj index aed1074..2db7b5f 100644 --- a/src/iRLeagueApiCore.Common/iRLeagueApiCore.Common.csproj +++ b/src/iRLeagueApiCore.Common/iRLeagueApiCore.Common.csproj @@ -18,7 +18,7 @@ Library net6.0 iRLeagueApiCore.Common - 0.10.0-dev.8 + 0.10.0-dev.10 Simon Schulze Simon Schulze enable