diff options
author | Emma [it/its]@Rory& <root@rory.gay> | 2024-05-14 17:48:26 +0200 |
---|---|---|
committer | Emma [it/its]@Rory& <root@rory.gay> | 2024-05-14 17:48:26 +0200 |
commit | b5860ce2011b96a2919d5306445b0e8bd8408b3d (patch) | |
tree | a7f0dc8f05d5b5c78cce06293b3143062102a81b | |
parent | Raise query size in synapse room query (diff) | |
download | LibMatrix-bak-b5860ce2011b96a2919d5306445b0e8bd8408b3d.tar.xz |
Add valid room memberhip values as constants
-rw-r--r-- | LibMatrix.EventTypes/Spec/State/RoomInfo/RoomMemberEventContent.cs | 8 |
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 |