Skip to content

Commit

Permalink
Merge pull request #40 from SSchulze1989/develop
Browse files Browse the repository at this point in the history
v 0.6.0
  • Loading branch information
SSchulze1989 authored Apr 1, 2023
2 parents d43aa19 + 6233e1a commit 0834a96
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/iRLeagueApiCore.Common/Enums/LeaguePublicSetting.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
namespace iRLeagueApiCore.Common.Enums;
public enum LeaguePublicSetting
{
PublicListed,
PublicHidden,
}
2 changes: 2 additions & 0 deletions src/iRLeagueApiCore.Common/Models/Leagues/PutLeagueModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,6 @@ public class PutLeagueModel
/// </summary>
[DataMember]
public ProtestPublicSetting ProtestsPublic { get; set; }
[DataMember]
public LeaguePublicSetting LeaguePublic { get; set; }
}
2 changes: 2 additions & 0 deletions src/iRLeagueApiCore.Common/Models/Users/PrivateUserModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ public class PrivateUserModel : UserModel
{
[DataMember]
public string Email { get; set; } = string.Empty;
[DataMember]
public bool HideFirstnameLastname { get; set; }
}
2 changes: 2 additions & 0 deletions src/iRLeagueApiCore.Common/Models/Users/PutUserModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@ public class PutUserModel
public string Lastname { get; set; } = string.Empty;
[DataMember]
public string Email { get; set; } = string.Empty;
[DataMember]
public bool HideFirstnameLastname { get; set; }
}
10 changes: 10 additions & 0 deletions src/iRLeagueApiCore.Common/Models/Users/RegisterModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@ public class RegisterModel
[Required(ErrorMessage = "User Name is required")]
public string Username { get; set; } = string.Empty;
/// <summary>
/// Firstname
/// </summary>
[Required(ErrorMessage = "Firstname is required")]
public string Firstname { get; set; } = string.Empty;
/// <summary>
/// Lastname
/// </summary>
[Required(ErrorMessage = "Lastname is required")]
public string Lastname { get; set; } = string.Empty;
/// <summary>
/// Valid email
/// </summary>
[EmailAddress]
Expand Down
6 changes: 6 additions & 0 deletions src/iRLeagueApiCore.Common/Responses/UnauthorizedResponse.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
namespace iRLeagueApiCore.Common.Responses;
public struct UnauthorizedResponse
{
public string Status { get; set; }
public IEnumerable<object> Errors { 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.5.2</Version>
<Version>0.6.0</Version>
<Authors>Simon Schulze</Authors>
<Company>Simon Schulze</Company>
<ImplicitUsings>enable</ImplicitUsings>
Expand Down

0 comments on commit 0834a96

Please sign in to comment.