diff options
Diffstat (limited to '')
-rw-r--r-- | LibMatrix/EventIdResponse.cs | 4 | ||||
-rw-r--r-- | LibMatrix/StateEvent.cs | 2 |
2 files changed, 3 insertions, 3 deletions
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; } |