Files

23 lines
642 B
C#

using System.Text.Json.Serialization;
namespace Futonizer.Models;
/// <summary>
/// One record of a previously-run strip (or copy) job, persisted so it can
/// be reviewed later from Settings.
/// </summary>
public class HistoryEntry
{
public DateTime Timestamp { get; set; }
public string FileName { get; set; } = string.Empty;
public string FilePath { get; set; } = string.Empty;
public bool Success { get; set; }
public string Message { get; set; } = string.Empty;
[JsonIgnore]
public bool Failed => !Success;
[JsonIgnore]
public string TimestampDisplay => Timestamp.ToString("yyyy-MM-dd HH:mm");
}