summaryrefslogtreecommitdiff
path: root/src/SMAPI.Web/Framework/Clients/ModDrop/ModDropMod.cs
blob: 291fb3532fd2fd66b3f9a40d893daa8321f488c1 (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
namespace StardewModdingAPI.Web.Framework.Clients.ModDrop
{
    /// <summary>Mod metadata from the ModDrop API.</summary>
    internal class ModDropMod
    {
        /*********
        ** Accessors
        *********/
        /// <summary>The mod name.</summary>
        public string Name { get; set; }

        /// <summary>The latest default file version.</summary>
        public ISemanticVersion LatestDefaultVersion { get; set; }

        /// <summary>The latest optional file version.</summary>
        public ISemanticVersion LatestOptionalVersion { get; set; }

        /// <summary>The mod's web URL.</summary>
        public string Url { get; set; }

        /// <summary>A user-friendly error which indicates why fetching the mod info failed (if applicable).</summary>
        public string Error { get; set; }
    }
}