using Microsoft.UI.Xaml;

namespace Tornado3_2026Election.ViewModels;

public sealed class DistrictOverviewCardViewModel
{
    public required string DistrictViewName { get; init; }

    public string DistrictCode { get; init; } = string.Empty;

    public required string RegionName { get; init; }

    public required string CountedRateDisplay { get; init; }

    public required string DetailText { get; init; }

    public string JudgementBadgeText { get; init; } = string.Empty;

    public string JudgementDetailText { get; init; } = string.Empty;

    public Visibility JudgementVisibility =>
        string.IsNullOrWhiteSpace(JudgementBadgeText)
            ? Visibility.Collapsed
            : Visibility.Visible;
}
