13 lines
501 B
C#
13 lines
501 B
C#
namespace ModpackUpdater.Apps.Manager.Ui.Models.UpdatesCollectorViewMode;
|
|
|
|
public record ModUpdateInfo(KeyValuePair<string, string>[] AvailableVersions, InstallAction Origin)
|
|
{
|
|
public int NewVersion { get; set; }
|
|
public bool Visible { get; set; } = true;
|
|
public IEnumerable<string> DisplayVersions { get; } = AvailableVersions.Select(n =>
|
|
{
|
|
if (string.IsNullOrWhiteSpace(n.Value) || n.Value == n.Key)
|
|
return n.Key;
|
|
return $"{n.Value} ({n.Value})";
|
|
});
|
|
} |