namespace StardewModdingAPI.Web.ViewModels
{
/// The view model for the index page.
public class IndexModel
{
/*********
** Accessors
*********/
/// The latest stable SMAPI version.
public IndexVersionModel StableVersion { get; set; }
/// The latest prerelease SMAPI version (if newer than ).
public IndexVersionModel BetaVersion { get; set; }
/// A short sentence shown under the beta download button, if any.
public string BetaBlurb { get; set; }
/// A list of supports to credit on the main page, in Markdown format.
public string SupporterList { get; set; }
/*********
** Public methods
*********/
/// Construct an instance.
public IndexModel() { }
/// Construct an instance.
/// The latest stable SMAPI version.
/// The latest prerelease SMAPI version (if newer than ).
/// A short sentence shown under the beta download button, if any.
/// A list of supports to credit on the main page, in Markdown format.
internal IndexModel(IndexVersionModel stableVersion, IndexVersionModel betaVersion, string betaBlurb, string supporterList)
{
this.StableVersion = stableVersion;
this.BetaVersion = betaVersion;
this.BetaBlurb = betaBlurb;
this.SupporterList = supporterList;
}
}
}