summaryrefslogtreecommitdiff
path: root/src/SMAPI.Web/Framework/Clients/CurseForge/CurseForgeMod.cs
blob: e5bb8cf1dfe5573da795567af7404606cd3a3186 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
using Newtonsoft.Json;

namespace StardewModdingAPI.Web.Framework.Clients.CurseForge
{
    /// <summary>Mod metadata from the CurseForge API.</summary>
    internal class CurseForgeMod
    {
        /*********
        ** Accessors
        *********/
        /// <summary>The mod name.</summary>
        public string Name { get; set; }

        /// <summary>The latest file version.</summary>
        public string LatestVersion { 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; }
    }
}