about summary refs log tree commit diff
path: root/MatrixRoomUtils.Core/StateEventTypes/ProfileResponse.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MatrixRoomUtils.Core/StateEventTypes/ProfileResponse.cs')
-rw-r--r--MatrixRoomUtils.Core/StateEventTypes/ProfileResponse.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/MatrixRoomUtils.Core/StateEventTypes/ProfileResponse.cs b/MatrixRoomUtils.Core/StateEventTypes/ProfileResponse.cs
new file mode 100644
index 0000000..d36ef74
--- /dev/null
+++ b/MatrixRoomUtils.Core/StateEventTypes/ProfileResponse.cs
@@ -0,0 +1,13 @@
+using System.Text.Json.Serialization;
+using MatrixRoomUtils.Core.Extensions;
+
+namespace MatrixRoomUtils.Core.StateEventTypes;
+
+[MatrixEvent(EventName = "m.room.member")]
+public class ProfileResponse {
+    [JsonPropertyName("avatar_url")]
+    public string? AvatarUrl { get; set; } = "";
+
+    [JsonPropertyName("displayname")]
+    public string? DisplayName { get; set; } = "";
+}
\ No newline at end of file