Files
ScratchingPost/Models/DeviceSlide.cs
T
2026-05-20 14:58:50 +10:00

25 lines
686 B
C#

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;
}