2023-07-09 16:32:14 +03:00
|
|
|
using Remora.Discord.API.Abstractions.Objects;
|
|
|
|
|
|
|
|
namespace Boyfriend.Data;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Stores information about scheduled events. This information is not provided by the Discord API.
|
|
|
|
/// </summary>
|
|
|
|
/// <remarks>This information is stored on disk as a JSON file.</remarks>
|
2023-08-02 23:51:16 +03:00
|
|
|
public sealed class ScheduledEventData
|
|
|
|
{
|
2023-08-14 16:24:22 +03:00
|
|
|
public ScheduledEventData(ulong id, string name, GuildScheduledEventStatus status,
|
|
|
|
DateTimeOffset scheduledStartTime)
|
2023-08-02 23:51:16 +03:00
|
|
|
{
|
2023-08-14 16:24:22 +03:00
|
|
|
Id = id;
|
|
|
|
Name = name;
|
2023-07-09 16:32:14 +03:00
|
|
|
Status = status;
|
2023-08-14 16:24:22 +03:00
|
|
|
ScheduledStartTime = scheduledStartTime;
|
2023-07-09 16:32:14 +03:00
|
|
|
}
|
|
|
|
|
2023-08-14 16:24:22 +03:00
|
|
|
public ulong Id { get; }
|
|
|
|
public string Name { get; set; }
|
2023-08-02 23:51:16 +03:00
|
|
|
public bool EarlyNotificationSent { get; set; }
|
2023-08-14 16:24:22 +03:00
|
|
|
public DateTimeOffset ScheduledStartTime { get; set; }
|
2023-08-02 23:51:16 +03:00
|
|
|
public DateTimeOffset? ActualStartTime { get; set; }
|
2023-08-12 16:47:14 +03:00
|
|
|
public GuildScheduledEventStatus? Status { get; set; }
|
2023-08-14 16:24:22 +03:00
|
|
|
public bool ScheduleOnStatusUpdated { get; set; } = true;
|
2023-07-09 16:32:14 +03:00
|
|
|
}
|