2020-02-02 12:36:22 +00:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using Wabbajack.Common;
|
|
|
|
|
using Wabbajack.Lib;
|
2020-02-01 13:42:31 +00:00
|
|
|
|
|
2020-02-02 12:36:22 +00:00
|
|
|
|
namespace Wabbajack
|
2020-02-01 13:42:31 +00:00
|
|
|
|
{
|
|
|
|
|
public class ManifestVM : ViewModel
|
2020-02-02 12:36:22 +00:00
|
|
|
|
{
|
|
|
|
|
public Manifest Manifest { get; set; }
|
2020-02-01 13:42:31 +00:00
|
|
|
|
|
2020-02-02 12:36:22 +00:00
|
|
|
|
public string Name => !string.IsNullOrWhiteSpace(Manifest.Name) ? Manifest.Name : "Wabbajack Modlist";
|
|
|
|
|
public string Author => !string.IsNullOrWhiteSpace(Manifest.Author) ? $"Created by {Manifest.Author}" : "Created by Jyggalag";
|
|
|
|
|
public string Description => !string.IsNullOrWhiteSpace(Manifest.Description) ? Manifest.Description : "";
|
|
|
|
|
public string InstallSize => $"Install Size: {Manifest.InstallSize.ToFileSizeString()}";
|
|
|
|
|
public string DownloadSize => $"Download Size: {Manifest.DownloadSize.ToFileSizeString()}";
|
|
|
|
|
|
|
|
|
|
public IEnumerable<Archive> Archives => Manifest.Archives;
|
|
|
|
|
|
|
|
|
|
public ManifestVM(Manifest manifest)
|
2020-02-01 13:42:31 +00:00
|
|
|
|
{
|
2020-02-02 12:36:22 +00:00
|
|
|
|
Manifest = manifest;
|
2020-02-01 13:42:31 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|