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; }
/// A message to show below the download button (e.g. for details on downloading a beta version), in Markdown format.
public string OtherBlurb { 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.
/// A message to show below the download button (e.g. for details on downloading a beta version), in Markdown format.
/// A list of supports to credit on the main page, in Markdown format.
internal IndexModel(IndexVersionModel stableVersion, string otherBlurb, string supporterList)
{
this.StableVersion = stableVersion;
this.OtherBlurb = otherBlurb;
this.SupporterList = supporterList;
}
}
}