block schedule refactor (#1553)
* erase block playout history and items from playouts page * remove block from template * refactor block scheduling; improve history behavior
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
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; }
|
||||
}
|
||||
Reference in New Issue
Block a user