diff options
author | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-06-25 03:07:05 +0200 |
---|---|---|
committer | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-06-25 03:07:05 +0200 |
commit | f866946fbbe962c712049327ade9dcbd43900295 (patch) | |
tree | 3400fcce20f68a6ef3eb130f4ef57733e346d0e9 /MatrixRoomUtils.Core/JoinRules.cs | |
parent | Working sync (diff) | |
download | MatrixUtils-f866946fbbe962c712049327ade9dcbd43900295.tar.xz |
Working state, refactored Rory&::LibMatrix
Diffstat (limited to 'MatrixRoomUtils.Core/JoinRules.cs')
-rw-r--r-- | MatrixRoomUtils.Core/JoinRules.cs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/MatrixRoomUtils.Core/JoinRules.cs b/MatrixRoomUtils.Core/JoinRules.cs new file mode 100644 index 0000000..7ce56c4 --- /dev/null +++ b/MatrixRoomUtils.Core/JoinRules.cs @@ -0,0 +1,15 @@ +using System.Text.Json.Serialization; + +namespace MatrixRoomUtils.Core; + +public class JoinRules { + private static string Public = "public"; + private static string Invite = "invite"; + private static string Knock = "knock"; + + [JsonPropertyName("join_rule")] + public string JoinRule { get; set; } + + [JsonPropertyName("allow")] + public List<string> Allow { get; set; } +} \ No newline at end of file |