2023-09-30 16:58:32 +03:00
|
|
|
namespace Octobot.Data;
|
2023-01-18 17:39:24 +03:00
|
|
|
|
2023-07-09 16:32:14 +03:00
|
|
|
/// <summary>
|
|
|
|
/// Stores information about a member
|
|
|
|
/// </summary>
|
2023-08-02 23:51:16 +03:00
|
|
|
public sealed class MemberData
|
|
|
|
{
|
2023-10-17 15:01:24 +03:00
|
|
|
public MemberData(ulong id, DateTimeOffset? bannedUntil = null, List<Reminder>? reminders = null)
|
2023-08-02 23:51:16 +03:00
|
|
|
{
|
2023-01-18 17:39:24 +03:00
|
|
|
Id = id;
|
2023-07-09 16:32:14 +03:00
|
|
|
BannedUntil = bannedUntil;
|
2023-10-17 15:01:24 +03:00
|
|
|
if (reminders is not null)
|
|
|
|
{
|
|
|
|
Reminders = reminders;
|
|
|
|
}
|
2023-01-18 17:39:24 +03:00
|
|
|
}
|
|
|
|
|
2023-08-02 23:51:16 +03:00
|
|
|
public ulong Id { get; }
|
2023-07-09 16:32:14 +03:00
|
|
|
public DateTimeOffset? BannedUntil { get; set; }
|
2023-09-21 20:16:09 +03:00
|
|
|
public DateTimeOffset? MutedUntil { get; set; }
|
2023-12-21 18:35:10 +03:00
|
|
|
public bool Kicked { get; set; }
|
2023-12-05 22:24:55 +03:00
|
|
|
public List<ulong> Roles { get; set; } = [];
|
|
|
|
public List<Reminder> Reminders { get; } = [];
|
2023-01-18 17:39:24 +03:00
|
|
|
}
|