namespace GsaEditor.ViewModels;

/// <summary>
/// A single search hit: a file name match, or a matching line inside a file.
/// </summary>
public class SearchResultViewModel
{
    /// <summary>
    /// Alias of the matching archive entry.
    /// </summary>
    public string Alias { get; init; } = string.Empty;

    /// <summary>
    /// Match context for content searches (e.g. "line 12: ..."). Empty for name matches.
    /// </summary>
    public string Detail { get; init; } = string.Empty;

    public bool HasDetail => Detail.Length > 0;
}
