using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace OpenArchival.DataAccess;
///
/// Used to display sliders of featured artifacts on the search page before a search is entered.
///
public class SearchPageSliderEntry
{
[Key]
public int Id { get; set; }
public string Title { get; set; } = "";
public string Description { get; set; } = "";
///
/// The tags used to find artifacts for the slider
///
public List FilterTags { get; set; } = [];
///
/// Only set to true when the slider should show up on the home page, if it is false,
/// it is assumed that this slider should only show up on the featured page
///
[DefaultValue(false)]
public bool IsHomePageSlider { get; set; }
///
/// Linkage to the homepage configuration if this slider is part of it
///
public HomePageConfiguration? HomePageConfiguration { get; set; }
///
/// The maximum number of artifact entries that should be pulled for this slider
///
public int MaxCount { get; set; } = 10;
}