From 478fc1b0ef855530e1e93c5212d154280f9d7dd8 Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Tue, 24 Oct 2023 17:44:03 +0200 Subject: Minor cleanup --- .../EventTypes/Spec/State/ProfileResponseEventContent.cs | 12 ------------ .../EventTypes/Spec/State/RoomInfo/RoomMemberEventContent.cs | 4 +++- 2 files changed, 3 insertions(+), 13 deletions(-) delete mode 100644 LibMatrix/EventTypes/Spec/State/ProfileResponseEventContent.cs (limited to 'LibMatrix/EventTypes') diff --git a/LibMatrix/EventTypes/Spec/State/ProfileResponseEventContent.cs b/LibMatrix/EventTypes/Spec/State/ProfileResponseEventContent.cs deleted file mode 100644 index 893fce1..0000000 --- a/LibMatrix/EventTypes/Spec/State/ProfileResponseEventContent.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System.Text.Json.Serialization; -using LibMatrix.Interfaces; - -namespace LibMatrix.EventTypes.Spec.State; - -public class ProfileResponseEventContent : EventContent { - [JsonPropertyName("avatar_url")] - public string? AvatarUrl { get; set; } - - [JsonPropertyName("displayname")] - public string? DisplayName { get; set; } -} diff --git a/LibMatrix/EventTypes/Spec/State/RoomInfo/RoomMemberEventContent.cs b/LibMatrix/EventTypes/Spec/State/RoomInfo/RoomMemberEventContent.cs index bda84a4..da9ab0a 100644 --- a/LibMatrix/EventTypes/Spec/State/RoomInfo/RoomMemberEventContent.cs +++ b/LibMatrix/EventTypes/Spec/State/RoomInfo/RoomMemberEventContent.cs @@ -3,8 +3,10 @@ using LibMatrix.Interfaces; namespace LibMatrix.EventTypes.Spec.State; -[MatrixEvent(EventName = "m.room.member")] +[MatrixEvent(EventName = EventId)] public class RoomMemberEventContent : EventContent { + public const string EventId = "m.room.member"; + [JsonPropertyName("reason")] public string? Reason { get; set; } -- cgit 1.4.1