2020-06-12 21:13:21 +00:00
|
|
|
|
#nullable enable
|
|
|
|
|
|
|
|
|
|
using NodaTime;
|
|
|
|
|
|
|
|
|
|
namespace PluralKit.Core
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Model for the `message_context` PL/pgSQL function in `functions.sql`
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class MessageContext
|
|
|
|
|
{
|
2020-06-14 19:37:04 +00:00
|
|
|
|
public SystemId? SystemId { get; }
|
2020-06-12 22:42:25 +00:00
|
|
|
|
public ulong? LogChannel { get; }
|
|
|
|
|
public bool InBlacklist { get; }
|
|
|
|
|
public bool InLogBlacklist { get; }
|
|
|
|
|
public bool LogCleanupEnabled { get; }
|
|
|
|
|
public bool ProxyEnabled { get; }
|
|
|
|
|
public AutoproxyMode AutoproxyMode { get; }
|
2020-06-14 19:37:04 +00:00
|
|
|
|
public MemberId? AutoproxyMember { get; }
|
2020-06-12 22:42:25 +00:00
|
|
|
|
public ulong? LastMessage { get; }
|
2020-06-14 19:37:04 +00:00
|
|
|
|
public MemberId? LastMessageMember { get; }
|
2020-06-15 10:54:22 +00:00
|
|
|
|
public SwitchId? LastSwitch { get; }
|
2020-06-17 20:39:54 +00:00
|
|
|
|
public MemberId[] LastSwitchMembers { get; } = new MemberId[0];
|
2020-06-15 10:54:22 +00:00
|
|
|
|
public Instant? LastSwitchTimestamp { get; }
|
2020-06-12 22:42:25 +00:00
|
|
|
|
public string? SystemTag { get; }
|
2021-08-02 21:22:06 +00:00
|
|
|
|
public string? SystemGuildTag { get; }
|
|
|
|
|
public bool TagEnabled { get; }
|
2020-06-12 22:42:25 +00:00
|
|
|
|
public string? SystemAvatar { get; }
|
2020-11-20 23:34:08 +00:00
|
|
|
|
public bool AllowAutoproxy { get; }
|
2020-12-08 11:57:17 +00:00
|
|
|
|
public int? LatchTimeout { get; }
|
2020-06-12 21:13:21 +00:00
|
|
|
|
}
|
|
|
|
|
}
|