SiteViewer/SiteViewer/Models/SiteEntry.cs
kykaevv f04a0d517c Initial commit: SiteViewer kiosk app (WPF + WebView2, schedule, LAN admin).
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-01 13:09:05 +03:00

23 lines
739 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System;
namespace SiteViewer.Models
{
public sealed class SiteEntry
{
public Guid Id { get; set; } = Guid.NewGuid();
public string Title { get; set; } = string.Empty;
public string Url { get; set; } = string.Empty;
/// <summary>Дата и время, с которых ссылка считается включённой.</summary>
public DateTime EnabledFrom { get; set; } = DateTime.Today;
/// <summary>Окно для показа по расписанию: 1 или 2.</summary>
public int WindowNumber { get; set; } = 1;
public override string ToString()
{
return string.IsNullOrWhiteSpace(Title) ? Url : Title;
}
}
}