From 2b566a31b68f14d51faae61cbfbe359d0691a890 Mon Sep 17 00:00:00 2001 From: Rory& Date: Fri, 22 Mar 2024 16:38:53 +0000 Subject: Changes --- LibMatrix/EventIdResponse.cs | 4 ++-- LibMatrix/StateEvent.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'LibMatrix') diff --git a/LibMatrix/EventIdResponse.cs b/LibMatrix/EventIdResponse.cs index 0a7cfd9..4d715a4 100644 --- a/LibMatrix/EventIdResponse.cs +++ b/LibMatrix/EventIdResponse.cs @@ -2,7 +2,7 @@ using System.Text.Json.Serialization; namespace LibMatrix; -public class EventIdResponse(string eventId) { +public class EventIdResponse { [JsonPropertyName("event_id")] - public string EventId { get; set; } = eventId; + public string EventId { get; set; } } \ No newline at end of file diff --git a/LibMatrix/StateEvent.cs b/LibMatrix/StateEvent.cs index d9d0f4e..9800c27 100644 --- a/LibMatrix/StateEvent.cs +++ b/LibMatrix/StateEvent.cs @@ -72,7 +72,7 @@ public class StateEvent { } [JsonPropertyName("state_key")] - public string StateKey { get; set; } + public string? StateKey { get; set; } [JsonPropertyName("type")] public string Type { get; set; } -- cgit 1.4.1