about summary refs log tree commit diff
path: root/LibMatrix/EventTypes/Spec/State
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--LibMatrix/EventTypes/Spec/State/RoomInfo/RoomMemberEventContent.cs4
-rw-r--r--LibMatrix/Responses/UserProfileResponse.cs (renamed from LibMatrix/EventTypes/Spec/State/ProfileResponseEventContent.cs)4
2 files changed, 5 insertions, 3 deletions
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; }
 
diff --git a/LibMatrix/EventTypes/Spec/State/ProfileResponseEventContent.cs b/LibMatrix/Responses/UserProfileResponse.cs
index 893fce1..e56e87b 100644
--- a/LibMatrix/EventTypes/Spec/State/ProfileResponseEventContent.cs
+++ b/LibMatrix/Responses/UserProfileResponse.cs
@@ -1,9 +1,9 @@
 using System.Text.Json.Serialization;
 using LibMatrix.Interfaces;
 
-namespace LibMatrix.EventTypes.Spec.State;
+namespace LibMatrix.Responses;
 
-public class ProfileResponseEventContent : EventContent {
+public class UserProfileResponse {
     [JsonPropertyName("avatar_url")]
     public string? AvatarUrl { get; set; }