about summary refs log tree commit diff
path: root/LibMatrix.EventTypes/Spec/State/RoomInfo/RoomCanonicalAliasEventContent.cs
blob: 93f13ac99b27fad77932d51c095b71c14365be62 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
using System.Text.Json.Serialization;

namespace LibMatrix.EventTypes.Spec.State;

[MatrixEvent(EventName = EventId)]
public class RoomCanonicalAliasEventContent : EventContent {
    public const string EventId = "m.room.canonical_alias";

    [JsonPropertyName("alias")]
    public string? Alias { get; set; }

    [JsonPropertyName("alt_aliases")]
    public string[]? AltAliases { get; set; }
}