summaryrefslogtreecommitdiff
path: root/src/SMAPI.Web/ViewModels/IndexVersionModel.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/SMAPI.Web/ViewModels/IndexVersionModel.cs')
-rw-r--r--src/SMAPI.Web/ViewModels/IndexVersionModel.cs15
1 files changed, 5 insertions, 10 deletions
diff --git a/src/SMAPI.Web/ViewModels/IndexVersionModel.cs b/src/SMAPI.Web/ViewModels/IndexVersionModel.cs
index 1f5d4ec0..a76a5924 100644
--- a/src/SMAPI.Web/ViewModels/IndexVersionModel.cs
+++ b/src/SMAPI.Web/ViewModels/IndexVersionModel.cs
@@ -1,5 +1,3 @@
-#nullable disable
-
namespace StardewModdingAPI.Web.ViewModels
{
/// <summary>The fields for a SMAPI version.</summary>
@@ -9,30 +7,27 @@ namespace StardewModdingAPI.Web.ViewModels
** Accessors
*********/
/// <summary>The release version.</summary>
- public string Version { get; set; }
+ public string Version { get; }
/// <summary>The Markdown description for the release.</summary>
- public string Description { get; set; }
+ public string Description { get; }
/// <summary>The main download URL.</summary>
- public string DownloadUrl { get; set; }
+ public string DownloadUrl { get; }
/// <summary>The for-developers download URL (not applicable for prerelease versions).</summary>
- public string DevDownloadUrl { get; set; }
+ public string? DevDownloadUrl { get; }
/*********
** Public methods
*********/
/// <summary>Construct an instance.</summary>
- public IndexVersionModel() { }
-
- /// <summary>Construct an instance.</summary>
/// <param name="version">The release number.</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 (not applicable for prerelease versions).</param>
- internal IndexVersionModel(string version, string description, string downloadUrl, string devDownloadUrl)
+ internal IndexVersionModel(string version, string description, string downloadUrl, string? devDownloadUrl)
{
this.Version = version;
this.Description = description;