v1.0.0: DeviceSlide model

This commit is contained in:
2026-05-20 14:58:50 +10:00
parent b4e3581026
commit dd955f4022
+24
View File
@@ -0,0 +1,24 @@
using System.ComponentModel.DataAnnotations;
namespace NoticeBoard.Models;
public class DeviceSlide
{
public int Id { get; set; }
public int DeviceId { get; set; }
public Device Device { get; set; } = null!;
public int SlideId { get; set; }
public Slide Slide { get; set; } = null!;
/// <summary>Order in the playlist (lower = first)</summary>
public int DisplayOrder { get; set; }
/// <summary>Duration in seconds to show this slide</summary>
[Range(5, 3600)]
public int DurationSeconds { get; set; } = 30;
/// <summary>Whether this slide is currently enabled in the playlist</summary>
public bool Enabled { get; set; } = true;
}