diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-08-26 12:25:25 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-08-26 12:25:25 -0400 |
commit | da29f3f08f2192cdce2d3a9ed3c55680421e0caf (patch) | |
tree | dea9bf89cf4e12322960b5efa8dfc9598d51a235 /src/SMAPI.Web/ViewModels | |
parent | fb3b7aefa79ed9edeee85cf64004e928d203de81 (diff) | |
download | SMAPI-da29f3f08f2192cdce2d3a9ed3c55680421e0caf.tar.gz SMAPI-da29f3f08f2192cdce2d3a9ed3c55680421e0caf.tar.bz2 SMAPI-da29f3f08f2192cdce2d3a9ed3c55680421e0caf.zip |
make beta download blurb configurable (#585)
Diffstat (limited to 'src/SMAPI.Web/ViewModels')
-rw-r--r-- | src/SMAPI.Web/ViewModels/IndexModel.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/SMAPI.Web/ViewModels/IndexModel.cs b/src/SMAPI.Web/ViewModels/IndexModel.cs index 4268c878..82c4e06f 100644 --- a/src/SMAPI.Web/ViewModels/IndexModel.cs +++ b/src/SMAPI.Web/ViewModels/IndexModel.cs @@ -12,6 +12,9 @@ namespace StardewModdingAPI.Web.ViewModels /// <summary>The latest prerelease SMAPI version (if newer than <see cref="StableVersion"/>).</summary> public IndexVersionModel BetaVersion { get; set; } + /// <summary>A short sentence shown under the beta download button, if any.</summary> + public string BetaBlurb { get; set; } + /********* ** Public methods @@ -22,10 +25,12 @@ namespace StardewModdingAPI.Web.ViewModels /// <summary>Construct an instance.</summary> /// <param name="stableVersion">The latest stable SMAPI version.</param> /// <param name="betaVersion">The latest prerelease SMAPI version (if newer than <paramref name="stableVersion"/>).</param> - internal IndexModel(IndexVersionModel stableVersion, IndexVersionModel betaVersion) + /// <param name="betaBlurb">A short sentence shown under the beta download button, if any.</param> + internal IndexModel(IndexVersionModel stableVersion, IndexVersionModel betaVersion, string betaBlurb) { this.StableVersion = stableVersion; this.BetaVersion = betaVersion; + this.BetaBlurb = betaBlurb; } } } |