diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-12-25 10:42:18 -0500 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-12-25 10:42:18 -0500 |
commit | f20e804622e8892a090a6678aa38f32898e0d433 (patch) | |
tree | 0527dd7a06d3def685fc2f913efdb6e65360103d /src/SMAPI.Web/ViewModels/IndexModel.cs | |
parent | bbd021f8736d1496f34a58b12bb0ee6c341d1c5e (diff) | |
parent | c90b821a43bd98c3268a25a324f10a1f2055d7ac (diff) | |
download | SMAPI-f20e804622e8892a090a6678aa38f32898e0d433.tar.gz SMAPI-f20e804622e8892a090a6678aa38f32898e0d433.tar.bz2 SMAPI-f20e804622e8892a090a6678aa38f32898e0d433.zip |
Merge branch 'feature/download-page' into develop
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; + } + } +} |