summaryrefslogtreecommitdiff
path: root/src/SMAPI.Web/Framework/Clients/ModDrop/ResponseModels/FileDataModel.cs
blob: b01196f4dd886ca8bea8f77467523978eaedc1f9 (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
using Newtonsoft.Json;

namespace StardewModdingAPI.Web.Framework.Clients.ModDrop.ResponseModels
{
    /// <summary>Metadata from the ModDrop API about a mod file.</summary>
    public class FileDataModel
    {
        /// <summary>The file title.</summary>
        [JsonProperty("title")]
        public string Name { get; set; }

        /// <summary>The file description.</summary>
        [JsonProperty("desc")]
        public string Description { get; set; }

        /// <summary>The file version.</summary>
        public string Version { get; set; }

        /// <summary>Whether the file is deleted.</summary>
        public bool IsDeleted { get; set; }

        /// <summary>Whether the file is hidden from users.</summary>
        public bool IsHidden { get; set; }

        /// <summary>Whether this is the default file for the mod.</summary>
        public bool IsDefault { get; set; }

        /// <summary>Whether this is an archived file.</summary>
        public bool IsOld { get; set; }
    }
}