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

namespace MatrixRoomUtils.Core.StateEventTypes;

[MatrixEvent(EventName = "m.room.member")]
public class MemberEventData : IStateEventType {
    [JsonPropertyName("reason")]
    public string? Reason { get; set; }

    [JsonPropertyName("membership")]
    public string Membership { get; set; } = null!;

    [JsonPropertyName("displayname")]
    public string? Displayname { get; set; }

    [JsonPropertyName("is_direct")]
    public bool? IsDirect { get; set; }
    
    [JsonPropertyName("avatar_url")]
    public string? AvatarUrl { get; set; }
}