Files
ersatztv/ErsatzTV.Core/Scheduling/BlockScheduling/BlockKey.cs
T
Jason DoveandGitHub adbd0bcec0 block schedule refactor (#1553)
* erase block playout history and items from playouts page

* remove block from template

* refactor block scheduling; improve history behavior
2024-01-14 10:22:04 -06:00

53 lines
1.1 KiB
C#

using System.Diagnostics.CodeAnalysis;
using ErsatzTV.Core.Domain.Scheduling;
namespace ErsatzTV.Core.Scheduling.BlockScheduling;
[SuppressMessage("ReSharper", "InconsistentNaming")]
public record BlockKey
{
public BlockKey()
{
}
public BlockKey(Block block, Template template, PlayoutTemplate playoutTemplate)
{
b = block.Id;
bt = block.DateUpdated.Ticks;
t = template.Id;
tt = template.DateUpdated.Ticks;
pt = playoutTemplate.Id;
ptt = playoutTemplate.DateUpdated.Ticks;
}
/// <summary>
/// Block Id
/// </summary>
public int b { get; set; }
/// <summary>
/// Template Id
/// </summary>
public int t { get; set; }
/// <summary>
/// Playout Template Id
/// </summary>
public int pt { get; set; }
/// <summary>
/// Block Date Updated Ticks
/// </summary>
public long bt { get; set; }
/// <summary>
/// Template Date Updated Ticks
/// </summary>
public long tt { get; set; }
/// <summary>
/// Playout Template Date Updated Ticks
/// </summary>
public long ptt { get; set; }
}