diff options
Diffstat (limited to 'LibMatrix/Responses/SyncResponse.cs')
-rw-r--r-- | LibMatrix/Responses/SyncResponse.cs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/LibMatrix/Responses/SyncResponse.cs b/LibMatrix/Responses/SyncResponse.cs index 42759ff..49259d0 100644 --- a/LibMatrix/Responses/SyncResponse.cs +++ b/LibMatrix/Responses/SyncResponse.cs @@ -2,6 +2,10 @@ using System.Text.Json.Serialization; namespace LibMatrix.Responses; +[JsonSourceGenerationOptions(WriteIndented = true)] +[JsonSerializable(typeof(SyncResponse))] +internal partial class SyncResponseSerializerContext : JsonSerializerContext { } + public class SyncResponse { [JsonPropertyName("next_batch")] public string NextBatch { get; set; } = null!; @@ -114,4 +118,4 @@ public class SyncResponse { public EventList? InviteState { get; set; } } } -} +} \ No newline at end of file |