Skip to content

Commit

Permalink
Add protest form access setting props
Browse files Browse the repository at this point in the history
  • Loading branch information
SSchulze1989 committed Sep 11, 2023
1 parent 7aa2874 commit 82c852f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
10 changes: 10 additions & 0 deletions src/iRLeagueApiCore.Common/Enums/ProtestFormAccess.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
namespace iRLeagueApiCore.Common.Enums;

[Flags]
public enum ProtestFormAccess
{
Public = 1,
Participants = 2,
LeagueMembers = 4,
Password = 8,
}
5 changes: 5 additions & 0 deletions src/iRLeagueApiCore.Common/Models/Leagues/PutLeagueModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ public class PutLeagueModel
/// </summary>
[DataMember]
public ProtestPublicSetting ProtestsPublic { get; set; }
/// <summary>
/// Set who can access the protest form and file protests
/// </summary>
[DataMember]
public ProtestFormAccess ProtestFormAccess { get; set; }
[DataMember]
public LeaguePublicSetting LeaguePublic { get; set; }
}
2 changes: 1 addition & 1 deletion src/iRLeagueApiCore.Common/iRLeagueApiCore.Common.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<OutputType>Library</OutputType>
<TargetFramework>net6.0</TargetFramework>
<PackageId>iRLeagueApiCore.Common</PackageId>
<Version>0.9.1</Version>
<Version>0.9.2-dev.1</Version>
<Authors>Simon Schulze</Authors>
<Company>Simon Schulze</Company>
<ImplicitUsings>enable</ImplicitUsings>
Expand Down

0 comments on commit 82c852f

Please sign in to comment.