ShiftScheduler/Shared/Shift.cs
copilot-swe-agent[bot] 052524ea54 Implement enhanced icon system with Open Iconic support
Co-authored-by: clayschaad <11883505+clayschaad@users.noreply.github.com>
2025-08-29 19:00:01 +00:00

18 lines
699 B
C#

namespace ShiftScheduler.Shared
{
public class Shift
{
public string Name { get; set; } = string.Empty;
public string Icon { get; set; } = string.Empty;
public string MorningTime { get; set; } = string.Empty;
public string AfternoonTime { get; set; } = string.Empty;
public bool IsPngIcon => Icon.EndsWith(".png", StringComparison.OrdinalIgnoreCase);
public bool IsOpenIconicIcon => Icon.StartsWith("oi-", StringComparison.OrdinalIgnoreCase);
public bool IsUnicodeIcon => !IsPngIcon && !IsOpenIconicIcon;
public string GetOpenIconicClass() => IsOpenIconicIcon ? $"oi {Icon}" : string.Empty;
}
}