about summary refs log tree commit diff
path: root/LibMatrix/EventIdResponse.cs
blob: c2ad27328c3cab5c691131706a9887f9003422c2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
using System.Text.Json.Serialization;

namespace LibMatrix;

public class EventIdResponse(string eventId) {
    public EventIdResponse(StateEventResponse stateEventResponse) : this(stateEventResponse.EventId ?? throw new NullReferenceException("State event ID is null!")) { }

    [JsonPropertyName("event_id")]
    public string EventId { get; set; } = eventId;
}