summaryrefslogtreecommitdiff
path: root/src/SMAPI.Web/Framework/Clients/GenericModDownload.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2020-06-20 12:43:08 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2020-06-20 12:43:08 -0400
commite64ecc89f94641d4054162eff4943f660f43030f (patch)
treec43ca79f9947b3e16f946e1dc5fd1d02f70ce571 /src/SMAPI.Web/Framework/Clients/GenericModDownload.cs
parentdf6e745c6b842290338317ed1d3e969ee222998c (diff)
parentcb9ff7019995eff92104703f097856d2523e02ce (diff)
downloadSMAPI-e64ecc89f94641d4054162eff4943f660f43030f.tar.gz
SMAPI-e64ecc89f94641d4054162eff4943f660f43030f.tar.bz2
SMAPI-e64ecc89f94641d4054162eff4943f660f43030f.zip
Merge branch 'develop' into stable
Diffstat (limited to 'src/SMAPI.Web/Framework/Clients/GenericModDownload.cs')
-rw-r--r--src/SMAPI.Web/Framework/Clients/GenericModDownload.cs36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/SMAPI.Web/Framework/Clients/GenericModDownload.cs b/src/SMAPI.Web/Framework/Clients/GenericModDownload.cs
new file mode 100644
index 00000000..f08b471c
--- /dev/null
+++ b/src/SMAPI.Web/Framework/Clients/GenericModDownload.cs
@@ -0,0 +1,36 @@
+namespace StardewModdingAPI.Web.Framework.Clients
+{
+ /// <summary>Generic metadata about a file download on a mod page.</summary>
+ internal class GenericModDownload : IModDownload
+ {
+ /*********
+ ** Accessors
+ *********/
+ /// <summary>The download's display name.</summary>
+ public string Name { get; set; }
+
+ /// <summary>The download's description.</summary>
+ public string Description { get; set; }
+
+ /// <summary>The download's file version.</summary>
+ public string Version { get; set; }
+
+
+ /*********
+ ** Public methods
+ *********/
+ /// <summary>Construct an empty instance.</summary>
+ public GenericModDownload() { }
+
+ /// <summary>Construct an instance.</summary>
+ /// <param name="name">The download's display name.</param>
+ /// <param name="description">The download's description.</param>
+ /// <param name="version">The download's file version.</param>
+ public GenericModDownload(string name, string description, string version)
+ {
+ this.Name = name;
+ this.Description = description;
+ this.Version = version;
+ }
+ }
+}