diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-12-25 01:47:10 -0500 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-12-25 01:47:10 -0500 |
commit | adee66b3b4ea111b0082a31108e55726fab10643 (patch) | |
tree | 64ae5b868dfeefa8a50a2474237b9cea1c540866 /src/SMAPI.Web/ViewModels/IndexModel.cs | |
parent | bbd021f8736d1496f34a58b12bb0ee6c341d1c5e (diff) | |
download | SMAPI-adee66b3b4ea111b0082a31108e55726fab10643.tar.gz SMAPI-adee66b3b4ea111b0082a31108e55726fab10643.tar.bz2 SMAPI-adee66b3b4ea111b0082a31108e55726fab10643.zip |
add basic download page (#411)
Diffstat (limited to 'src/SMAPI.Web/ViewModels/IndexModel.cs')
-rw-r--r-- | src/SMAPI.Web/ViewModels/IndexModel.cs | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/src/SMAPI.Web/ViewModels/IndexModel.cs b/src/SMAPI.Web/ViewModels/IndexModel.cs new file mode 100644 index 00000000..6d3da91e --- /dev/null +++ b/src/SMAPI.Web/ViewModels/IndexModel.cs @@ -0,0 +1,41 @@ +namespace StardewModdingAPI.Web.ViewModels +{ + /// <summary>The view model for the index page.</summary> + public class IndexModel + { + /********* + ** Accessors + *********/ + /// <summary>The latest SMAPI version.</summary> + public string LatestVersion { get; set; } + + /// <summary>The Markdown description for the release.</summary> + public string Description { get; set; } + + /// <summary>The main download URL.</summary> + public string DownloadUrl { get; set; } + + /// <summary>The for-developers download URL.</summary> + public string DevDownloadUrl { get; set; } + + + /********* + ** Public methods + *********/ + /// <summary>Construct an instance.</summary> + public IndexModel() { } + + /// <summary>Construct an instance.</summary> + /// <param name="latestVersion">The latest SMAPI version.</param> + /// <param name="description">The Markdown description for the release.</param> + /// <param name="downloadUrl">The main download URL.</param> + /// <param name="devDownloadUrl">The for-developers download URL.</param> + internal IndexModel(string latestVersion, string description, string downloadUrl, string devDownloadUrl) + { + this.LatestVersion = latestVersion; + this.Description = description; + this.DownloadUrl = downloadUrl; + this.DevDownloadUrl = devDownloadUrl; + } + } +} |