diff --git a/src/iRLeagueApiCore.Common/Enums/ProtestFormAccess.cs b/src/iRLeagueApiCore.Common/Enums/ProtestFormAccess.cs new file mode 100644 index 0000000..b08cc51 --- /dev/null +++ b/src/iRLeagueApiCore.Common/Enums/ProtestFormAccess.cs @@ -0,0 +1,10 @@ +namespace iRLeagueApiCore.Common.Enums; + +[Flags] +public enum ProtestFormAccess +{ + Public = 1, + Participants = 2, + LeagueMembers = 4, + Password = 8, +} diff --git a/src/iRLeagueApiCore.Common/Models/Leagues/PutLeagueModel.cs b/src/iRLeagueApiCore.Common/Models/Leagues/PutLeagueModel.cs index f7b4f48..de371fd 100644 --- a/src/iRLeagueApiCore.Common/Models/Leagues/PutLeagueModel.cs +++ b/src/iRLeagueApiCore.Common/Models/Leagues/PutLeagueModel.cs @@ -39,6 +39,16 @@ public class PutLeagueModel /// [DataMember] public ProtestPublicSetting ProtestsPublic { get; set; } + /// + /// Set who can access the protest form and file protests + /// + [DataMember] + public ProtestFormAccess ProtestFormAccess { get; set; } + [DataMember] + public LeaguePublicSetting LeaguePublic { get; set; } + /// + /// Enable access to protest form and reviews while race is running and before results have been uploaded + /// [DataMember] - public LeaguePublicSetting LeaguePublic { get; set; } + public bool EnableLiveReviews { get; set; } } diff --git a/src/iRLeagueApiCore.Common/iRLeagueApiCore.Common.csproj b/src/iRLeagueApiCore.Common/iRLeagueApiCore.Common.csproj index 6eb1480..acb0aa7 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.9.1 + 0.9.2 Simon Schulze Simon Schulze enable