From d21b53a05c45e1dd2591719e3622f8accbe27706 Mon Sep 17 00:00:00 2001 From: Rory& Date: Sun, 15 Dec 2024 02:39:58 +0100 Subject: Fix merge conflicts --- LibMatrix/StateEvent.cs | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'LibMatrix/StateEvent.cs') diff --git a/LibMatrix/StateEvent.cs b/LibMatrix/StateEvent.cs index 87050cc..dc76622 100644 --- a/LibMatrix/StateEvent.cs +++ b/LibMatrix/StateEvent.cs @@ -31,23 +31,6 @@ public class StateEvent { public static Type GetStateEventType(string? type) => string.IsNullOrWhiteSpace(type) ? typeof(UnknownEventContent) : KnownStateEventTypesByName.GetValueOrDefault(type) ?? typeof(UnknownEventContent); - [JsonPropertyName("state_key")] - public string? StateKey { get; set; } - - [JsonPropertyName("type")] - public string Type { get; set; } - - [JsonPropertyName("replaces_state")] - public string? ReplacesState { get; set; } - - private JsonObject? _rawContent; - - [JsonPropertyName("content")] - public JsonObject? RawContent { - get => _rawContent; - set => _rawContent = value; - } - [JsonIgnore] public Type MappedType => GetStateEventType(Type); @@ -96,7 +79,6 @@ public class StateEvent { } } -<<<<<<< HEAD public T? ContentAs() { try { return RawContent.Deserialize(TypedContentSerializerOptions)!; -- cgit 1.5.1