about summary refs log tree commit diff
path: root/LibMatrix
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--LibMatrix.EventTypes/Spec/State/RoomInfo/RoomMemberEventContent.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/LibMatrix.EventTypes/Spec/State/RoomInfo/RoomMemberEventContent.cs b/LibMatrix.EventTypes/Spec/State/RoomInfo/RoomMemberEventContent.cs
index 31983e0..b2d5596 100644
--- a/LibMatrix.EventTypes/Spec/State/RoomInfo/RoomMemberEventContent.cs
+++ b/LibMatrix.EventTypes/Spec/State/RoomInfo/RoomMemberEventContent.cs
@@ -26,4 +26,12 @@ public class RoomMemberEventContent : EventContent {
 
     [JsonPropertyName("join_authorised_via_users_server")]
     public string? JoinAuthorisedViaUsersServer { get; set; }
+    
+    public static class MembershipTypes {
+        public const string Invite = "invite";
+        public const string Join = "join";
+        public const string Leave = "leave";
+        public const string Ban = "ban";
+        public const string Knock = "knock";
+    }
 }
\ No newline at end of file