summaryrefslogtreecommitdiff
path: root/src/SMAPI.Web/Framework/Clients/ModDrop/ResponseModels/ModDataModel.cs
blob: 0654b57692921968d6d6569d47f42b1afd0ffb17 (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
33
namespace StardewModdingAPI.Web.Framework.Clients.ModDrop.ResponseModels
{
    /// <summary>Metadata about a mod from the ModDrop API.</summary>
    public class ModDataModel
    {
        /*********
        ** Accessors
        *********/
        /// <summary>The mod's unique ID on ModDrop.</summary>
        public int ID { get; set; }

        /// <summary>The mod name.</summary>
        public string Title { get; set; }

        /// <summary>The error code, if any.</summary>
        public int? ErrorCode { get; set; }


        /*********
        ** Public methods
        *********/
        /// <summary>Construct an instance.</summary>
        /// <param name="id">The mod's unique ID on ModDrop.</param>
        /// <param name="title">The mod name.</param>
        /// <param name="errorCode">The error code, if any.</param>
        public ModDataModel(int id, string title, int? errorCode)
        {
            this.ID = id;
            this.Title = title;
            this.ErrorCode = errorCode;
        }
    }
}