diff options
author | Rory& <root@rory.gay> | 2024-03-22 16:38:53 +0000 |
---|---|---|
committer | Rory& <root@rory.gay> | 2024-03-22 16:38:53 +0000 |
commit | 2b566a31b68f14d51faae61cbfbe359d0691a890 (patch) | |
tree | bfa1c6cc563f904bcae7c3461df8eb79e4e50290 /LibMatrix | |
parent | New messagebuilder stuff, table-based help command (diff) | |
download | LibMatrix-2b566a31b68f14d51faae61cbfbe359d0691a890.tar.xz |
Changes
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; } |