v1.0.0: DeviceSlide model
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user