using System;
namespace API.SignalR;
#nullable enable
///
/// Payload for SignalR messages to Frontend
///
public class SignalRMessage
{
///
/// Body of the event type
///
public object? Body { get; set; }
public required string Name { get; set; }
///
/// User friendly Title of the Event
///
/// Scanning Manga
public string Title { get; set; } = string.Empty;
///
/// User friendly subtitle. Should have extra info
///
/// C:/manga/Accel World V01.cbz
public string SubTitle { get; set; } = string.Empty;
///
/// Represents what this represents. started | updated | ended | single
///
///
public string EventType { get; set; } = ProgressEventType.Updated;
///
/// How should progress be represented. If Determinate, the Body MUST have a Progress float on it.
///
public string Progress { get; set; } = ProgressType.None;
///
/// When event took place
///
public readonly DateTime EventTime = DateTime.Now;
}