sharp-chat/SharpChatCommon/EventStorage/StoredEventInfo.cs

33 lines
913 B
C#
Raw Normal View History

using System;
using System.Text.Json;
namespace SharpChat.EventStorage {
public class StoredEventInfo {
public long Id { get; set; }
public string Type { get; set; }
public UserInfo? Sender { get; set; }
public DateTimeOffset Created { get; set; }
public DateTimeOffset? Deleted { get; set; }
2024-05-10 19:18:55 +00:00
public string? ChannelName { get; set; }
public JsonDocument Data { get; set; }
public StoredEventInfo(
long id,
string type,
UserInfo? sender,
DateTimeOffset created,
DateTimeOffset? deleted,
2024-05-10 19:18:55 +00:00
string? channelName,
2024-05-24 00:23:31 +00:00
JsonDocument data
) {
Id = id;
Type = type;
Sender = sender;
Created = created;
Deleted = deleted;
ChannelName = channelName;
Data = data;
}
}
}