mirror of
https://github.com/XFox111/bonch-calendar.git
synced 2026-06-30 10:52:41 +03:00
19 lines
574 B
C#
19 lines
574 B
C#
using System.Text.Json.Serialization;
|
|
using BonchCalendar.Health;
|
|
|
|
namespace BonchCalendar;
|
|
|
|
/// <summary>
|
|
/// Custom JSON serializer context for static serialization/deserialization of requests and responses
|
|
/// </summary>
|
|
[JsonSerializable(typeof(string))]
|
|
[JsonSerializable(typeof(string[]))]
|
|
[JsonSerializable(typeof(int))]
|
|
[JsonSerializable(typeof(bool))]
|
|
[JsonSerializable(typeof(StatsResponse))]
|
|
[JsonSerializable(typeof(Dictionary<int, string>))]
|
|
[JsonSerializable(typeof(HealthResponse))]
|
|
internal partial class AppJsonSerializerContext : JsonSerializerContext
|
|
{
|
|
}
|