36 lines
1.5 KiB
C#
36 lines
1.5 KiB
C#
using System.Text.Json.Serialization;
|
|||
|
|
|
||
|
|
using decePubClient.Models;
|
||
|
|
|
||
|
|
using PrivaPub.ClientModels;
|
||
|
|
|
||
|
|
namespace decePubClient;
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// Source-generated JSON metadata for the client's own types, used first by SUtility.DefaultSerializer (HTTP) and by
|
||
|
|
/// Blazored.LocalStorage (Program.cs). Register every type that crosses HTTP or is stored in localStorage here; types
|
||
|
|
/// missing from it still work through the reflection fallback. Names stay camelCase: wwwroot/js/theme.js reads
|
||
|
|
/// PublicCacheData.pageSettings straight from localStorage.
|
||
|
|
/// </summary>
|
||
|
|
[JsonSourceGenerationOptions(PropertyNamingPolicy = JsonKnownNamingPolicy.CamelCase, DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull,
|
||
|
|
IgnoreReadOnlyProperties = true)]
|
||
|
|
[JsonSerializable(typeof(PublicCacheData))]
|
||
|
|
[JsonSerializable(typeof(PageSettings))]
|
||
|
|
[JsonSerializable(typeof(AuthData))]
|
||
|
|
[JsonSerializable(typeof(User))]
|
||
|
|
[JsonSerializable(typeof(UserClaim))]
|
||
|
|
[JsonSerializable(typeof(ActionBarFilter))]
|
||
|
|
[JsonSerializable(typeof(Message))]
|
||
|
|
[JsonSerializable(typeof(List<Message>))]
|
||
|
|
[JsonSerializable(typeof(MessageUser))]
|
||
|
|
[JsonSerializable(typeof(BoostingUser))]
|
||
|
|
[JsonSerializable(typeof(Media))]
|
||
|
|
[JsonSerializable(typeof(MessageForm))]
|
||
|
|
[JsonSerializable(typeof(UploadMedia))]
|
||
|
|
[JsonSerializable(typeof(ClientLogs))]
|
||
|
|
[JsonSerializable(typeof(ClientLogException))]
|
||
|
|
[JsonSerializable(typeof(ValidationErrors))]
|
||
|
|
[JsonSerializable(typeof(WebResult))]
|
||
|
|
public partial class ClientJsonContext : JsonSerializerContext
|
||
|
|
{
|
||
|
|
}
|