2020-06-16 17:22:29 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace GCMM
|
|
|
|
|
{
|
2020-06-16 21:33:10 +00:00
|
|
|
|
public class ModInfo
|
2020-06-16 17:22:29 +00:00
|
|
|
|
{
|
|
|
|
|
public string Name { get; set; }
|
2020-06-16 21:33:10 +00:00
|
|
|
|
/// <summary>
|
2020-06-17 16:31:20 +00:00
|
|
|
|
/// Installed version. Can be null.
|
2020-06-16 21:33:10 +00:00
|
|
|
|
/// </summary>
|
2020-06-17 13:08:22 +00:00
|
|
|
|
public Version Version { get; set; }
|
|
|
|
|
public Version LatestVersion { get; set; }
|
2020-06-16 21:33:10 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Can be null.
|
|
|
|
|
/// </summary>
|
2020-06-16 17:22:29 +00:00
|
|
|
|
public string Description { get; set; }
|
2020-06-16 21:33:10 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Can be null.
|
|
|
|
|
/// </summary>
|
2020-06-16 17:22:29 +00:00
|
|
|
|
public string Author { get; set; }
|
|
|
|
|
public DateTime LastUpdated { get; set; }
|
2020-06-16 21:33:10 +00:00
|
|
|
|
public bool Installed => Version != null;
|
|
|
|
|
public string DownloadURL { get; set; }
|
2020-06-17 16:31:20 +00:00
|
|
|
|
public HashSet<string> ModFiles { get; set; }
|
2020-06-17 21:56:18 +00:00
|
|
|
|
public string UpdateDetails { get; set; }
|
2020-07-18 20:25:52 +00:00
|
|
|
|
public bool Updatable => Version != null && LatestVersion != null && Version < LatestVersion;
|
2020-06-16 17:22:29 +00:00
|
|
|
|
}
|
|
|
|
|
}
|