PluralKit/PluralKit.Core/Database/Functions/MessageContext.cs

29 lines
969 B
C#
Raw Normal View History

#nullable enable
using System.Collections.Generic;
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; }
public SwitchId LastSwitch { get; }
public MemberId[] LastSwitchMembers { get; } = new MemberId[0];
2020-06-12 22:42:25 +00:00
public Instant LastSwitchTimestamp { get; }
public string? SystemTag { get; }
public string? SystemAvatar { get; }
}
}