From 82c852fd67ad83f0616bedfe710231127cc272d4 Mon Sep 17 00:00:00 2001 From: Simon Schulze Date: Mon, 11 Sep 2023 07:21:12 +0200 Subject: [PATCH] Add protest form access setting props --- src/iRLeagueApiCore.Common/Enums/ProtestFormAccess.cs | 10 ++++++++++ .../Models/Leagues/PutLeagueModel.cs | 5 +++++ .../iRLeagueApiCore.Common.csproj | 2 +- 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 src/iRLeagueApiCore.Common/Enums/ProtestFormAccess.cs 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..ca15dee 100644 --- a/src/iRLeagueApiCore.Common/Models/Leagues/PutLeagueModel.cs +++ b/src/iRLeagueApiCore.Common/Models/Leagues/PutLeagueModel.cs @@ -39,6 +39,11 @@ 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; } } diff --git a/src/iRLeagueApiCore.Common/iRLeagueApiCore.Common.csproj b/src/iRLeagueApiCore.Common/iRLeagueApiCore.Common.csproj index 6eb1480..2705392 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-dev.1 Simon Schulze Simon Schulze enable