blob: 7f588b667fb4f956b048806b60e968aa247ad510 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
namespace StardewModdingAPI.Framework.ModUpdateChecking
{
/// <summary>Update status for a mod.</summary>
internal class ModUpdateStatus
{
/*********
** Accessors
*********/
/// <summary>The version that this mod can be updated to (if any).</summary>
public ISemanticVersion Version { get; }
/// <summary>The error checking for updates of this mod (if any).</summary>
public string Error { get; }
/*********
** Public methods
*********/
/// <summary>Construct an instance.</summary>
/// <param name="version">The version that this mod can be update to.</param>
public ModUpdateStatus(ISemanticVersion version)
{
this.Version = version;
}
/// <summary>Construct an instance.</summary>
/// <param name="error">The error checking for updates of this mod.</param>
public ModUpdateStatus(string error)
{
this.Error = error;
}
}
}
|