RolesSTC
This commit is contained in:
parent
e4c99d0186
commit
900136ef76
@ -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>
|
||||
|
@ -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;
|
Loading…
Reference in New Issue
Block a user