namespace StardewModdingAPI.Web.ViewModels
{
/// The view model for the index page.
public class IndexModel
{
/*********
** Accessors
*********/
/// The latest stable SMAPI version.
public IndexVersionModel StableVersion { get; }
/// A message to show below the download button (e.g. for details on downloading a beta version), in Markdown format.
public string? OtherBlurb { get; }
/// A list of supports to credit on the main page, in Markdown format.
public string? SupporterList { get; }
/*********
** Public methods
*********/
/// 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;
}
}
}