using Newtonsoft.Json;
namespace StardewModdingAPI.Web.Framework.Clients.ModDrop.ResponseModels
{
/// Metadata from the ModDrop API about a mod file.
public class FileDataModel
{
/*********
** Accessors
*********/
/// The file title.
[JsonProperty("title")]
public string Name { get; }
/// The file description.
[JsonProperty("desc")]
public string Description { get; }
/// The file version.
public string Version { get; }
/// Whether the file is deleted.
public bool IsDeleted { get; }
/// Whether the file is hidden from users.
public bool IsHidden { get; }
/// Whether this is the default file for the mod.
public bool IsDefault { get; }
/// Whether this is an archived file.
public bool IsOld { get; }
/*********
** Public methods
*********/
/// Construct an instance.
/// The file title.
/// The file description.
/// The file version.
/// Whether the file is deleted.
/// Whether the file is hidden from users.
/// Whether this is the default file for the mod.
/// Whether this is an archived file.
public FileDataModel(string name, string description, string version, bool isDeleted, bool isHidden, bool isDefault, bool isOld)
{
this.Name = name;
this.Description = description;
this.Version = version;
this.IsDeleted = isDeleted;
this.IsHidden = isHidden;
this.IsDefault = isDefault;
this.IsOld = isOld;
}
}
}