about summary refs log tree commit diff
path: root/MatrixRoomUtils.Core/StateEventTypes/Spec/RoomMessageEventData.cs
blob: 2c56b88f0b30e42ad866b123893675778ae9adee (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
using System.Text.Json.Serialization;
using MatrixRoomUtils.Core.Extensions;
using MatrixRoomUtils.Core.Interfaces;

namespace MatrixRoomUtils.Core.StateEventTypes.Spec; 

[MatrixEvent(EventName = "m.room.message")]
public class RoomMessageEventData : IStateEventType {
    [JsonPropertyName("body")]
    public string Body { get; set; }
    [JsonPropertyName("msgtype")]
    public string MessageType { get; set; } = "m.notice";

    [JsonPropertyName("formatted_body")]
    public string FormattedBody { get; set; }

    [JsonPropertyName("format")]
    public string Format { get; set; }
}