about summary refs log tree commit diff
path: root/Tests/LibMatrix.EventTypes.Abstractions.Tests/TestData
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/LibMatrix.EventTypes.Abstractions.Tests/TestData')
-rw-r--r--Tests/LibMatrix.EventTypes.Abstractions.Tests/TestData/RoomMembershipEvent.json17
-rw-r--r--Tests/LibMatrix.EventTypes.Abstractions.Tests/TestData/RoomMembershipEventContent.json6
-rw-r--r--Tests/LibMatrix.EventTypes.Abstractions.Tests/TestData/RoomMessageEvent.json18
-rw-r--r--Tests/LibMatrix.EventTypes.Abstractions.Tests/TestData/RoomMessageEventContent.json11
4 files changed, 52 insertions, 0 deletions
diff --git a/Tests/LibMatrix.EventTypes.Abstractions.Tests/TestData/RoomMembershipEvent.json b/Tests/LibMatrix.EventTypes.Abstractions.Tests/TestData/RoomMembershipEvent.json
new file mode 100644
index 0000000..1134a58
--- /dev/null
+++ b/Tests/LibMatrix.EventTypes.Abstractions.Tests/TestData/RoomMembershipEvent.json
@@ -0,0 +1,17 @@
+{
+  "content": {
+    "avatar_url": "mxc://server1/abcdefgh",
+    "displayname": "User 1",
+    "is_direct": false,
+    "membership": "join"
+  },
+  "event_id": "$DLgeeol91D36xqZQvEwRJrOoBKttZ_S66hco8Ci-qb0",
+  "origin_server_ts": 1717146801732,
+  "sender": "@user1:server1",
+  "state_key": "@user1:server1",
+  "type": "m.room.member",
+  "unsigned": {
+    "prev_sender": "@user1:server1",
+    "replaces_state": "$4QptWS_8YzaZfROeFzOdhoV2wzYPEzQDx0Q6u2UOt8c"
+  }
+}
\ No newline at end of file
diff --git a/Tests/LibMatrix.EventTypes.Abstractions.Tests/TestData/RoomMembershipEventContent.json b/Tests/LibMatrix.EventTypes.Abstractions.Tests/TestData/RoomMembershipEventContent.json
new file mode 100644
index 0000000..ca328d4
--- /dev/null
+++ b/Tests/LibMatrix.EventTypes.Abstractions.Tests/TestData/RoomMembershipEventContent.json
@@ -0,0 +1,6 @@
+{
+  "avatar_url": "mxc://server1/abcdefgh",
+  "displayname": "User 1",
+  "is_direct": false,
+  "membership": "join"
+}
\ No newline at end of file
diff --git a/Tests/LibMatrix.EventTypes.Abstractions.Tests/TestData/RoomMessageEvent.json b/Tests/LibMatrix.EventTypes.Abstractions.Tests/TestData/RoomMessageEvent.json
new file mode 100644
index 0000000..3072114
--- /dev/null
+++ b/Tests/LibMatrix.EventTypes.Abstractions.Tests/TestData/RoomMessageEvent.json
@@ -0,0 +1,18 @@
+{
+    "content": {
+        "body": "This is a test message",
+        "format": "org.matrix.custom.html",
+        "formatted_body": "This is a test message <b>with HTML!</b>",
+        "m.mentions": {
+            "user_ids": [
+                "@emma:rory.gay"
+            ]
+        },
+        "msgtype": "m.text"
+    },
+    "event_id": "$qBmS2SyNAA-ODcOZpAd_RRfApzXuMmy0VHsCqnMebzI",
+    "origin_server_ts": 1717100265714,
+    "sender": "@user:example.xyz",
+    "type": "m.room.message",
+    "unsigned": null
+}
diff --git a/Tests/LibMatrix.EventTypes.Abstractions.Tests/TestData/RoomMessageEventContent.json b/Tests/LibMatrix.EventTypes.Abstractions.Tests/TestData/RoomMessageEventContent.json
new file mode 100644
index 0000000..d9c7024
--- /dev/null
+++ b/Tests/LibMatrix.EventTypes.Abstractions.Tests/TestData/RoomMessageEventContent.json
@@ -0,0 +1,11 @@
+{
+  "body": "This is a test message",
+  "format": "org.matrix.custom.html",
+  "formatted_body": "This is a test message <b>with HTML!</b>",
+  "m.mentions": {
+    "user_ids": [
+      "@emma:rory.gay"
+    ]
+  },
+  "msgtype": "m.text"
+}
\ No newline at end of file