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

namespace MatrixRoomUtils.Core.StateEventTypes.Spec; 

[MatrixEvent(EventName = "m.room.create")]
public class RoomCreateEventData : IStateEventType {
    [JsonPropertyName("room_version")]
    public string? RoomVersion { get; set; }
    [JsonPropertyName("creator")]
    public string? Creator { get; set; }
    [JsonPropertyName("m.federate")]
    public bool? Federate { get; set; }
    [JsonPropertyName("predecessor")]
    public RoomCreatePredecessor? Predecessor { get; set; }
    [JsonPropertyName("type")]
    public string? Type { get; set; }
    
    public class RoomCreatePredecessor { }
}