This commit is contained in:
JacobTech 2024-03-31 23:58:39 -04:00
parent e4c99d0186
commit 900136ef76
2 changed files with 20 additions and 1 deletions

View File

@ -5,7 +5,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<Title>Luski.Shared</Title>
<Version>1.1.0-alpha19</Version>
<Version>1.1.0-alpha21</Version>
</PropertyGroup>
<ItemGroup>

View File

@ -0,0 +1,19 @@
using System.Text.Json.Serialization;
using Luski.Shared.PublicServers.V1.Enums;
namespace Luski.Shared.PublicServers.V1.ServerToClient.HTTP;
public class RolesSTC : STC
{
[JsonInclude]
[JsonPropertyName("roles")]
public RoleSTC[] Roles { get; set; }
}
[JsonSerializable(typeof(RolesSTC))]
[JsonSourceGenerationOptions(
GenerationMode = JsonSourceGenerationMode.Default,
PropertyNamingPolicy = JsonKnownNamingPolicy.Unspecified,
WriteIndented = false,
DefaultIgnoreCondition = JsonIgnoreCondition.Never)]
public partial class RolesSTCContext : JsonSerializerContext;