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