blob: d7164258d73997ed5479f7a54908644fe7074fcc (
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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
using System.Text.Json.Serialization;
namespace LibMatrix.LegacyEvents.EventTypes.Spec.State;
[LegacyMatrixEvent(EventName = EventId)]
public class RoomMemberLegacyEventContent : LegacyEventContent {
public const string EventId = "m.room.member";
[JsonPropertyName("reason")]
public string? Reason { get; set; }
[JsonPropertyName("membership")]
public required string Membership { get; set; }
[JsonPropertyName("displayname")]
public string? DisplayName { get; set; }
[JsonPropertyName("is_direct")]
public bool? IsDirect { get; set; }
[JsonPropertyName("avatar_url")]
public string? AvatarUrl { get; set; }
[JsonPropertyName("kind")]
public string? Kind { get; set; }
[JsonPropertyName("join_authorised_via_users_server")]
public string? JoinAuthorisedViaUsersServer { get; set; }
public static class MembershipTypes {
public const string Invite = "invite";
public const string Join = "join";
public const string Leave = "leave";
public const string Ban = "ban";
public const string Knock = "knock";
}
}
|