summaryrefslogtreecommitdiff
path: root/src/SMAPI.Web/Framework/Clients/UpdateManifest/UpdateManifestModModel.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/SMAPI.Web/Framework/Clients/UpdateManifest/UpdateManifestModModel.cs')
-rw-r--r--src/SMAPI.Web/Framework/Clients/UpdateManifest/UpdateManifestModModel.cs32
1 files changed, 20 insertions, 12 deletions
diff --git a/src/SMAPI.Web/Framework/Clients/UpdateManifest/UpdateManifestModModel.cs b/src/SMAPI.Web/Framework/Clients/UpdateManifest/UpdateManifestModModel.cs
index 4ec9c03d..92642321 100644
--- a/src/SMAPI.Web/Framework/Clients/UpdateManifest/UpdateManifestModModel.cs
+++ b/src/SMAPI.Web/Framework/Clients/UpdateManifest/UpdateManifestModModel.cs
@@ -1,26 +1,34 @@
// Copyright 2022 Jamie Taylor
-using System;
-namespace StardewModdingAPI.Web.Framework.Clients.UpdateManifest {
- /// <summary>Data model for a mod in an update manifest.</summary>
- internal class UpdateManifestModModel {
+namespace StardewModdingAPI.Web.Framework.Clients.UpdateManifest
+{
+ /// <summary>The data model for a mod in an update manifest file.</summary>
+ internal class UpdateManifestModModel
+ {
+ /*********
+ ** Accessors
+ *********/
/// <summary>The mod's name.</summary>
- public string Name { get; }
+ public string? Name { get; }
- /// <summary>The mod's URL.</summary>
+ /// <summary>The mod page URL from which to download updates.</summary>
public string? Url { get; }
- /// <summary>The versions for this mod.</summary>
- public UpdateManifestVersionModel[] Versions { get; }
+ /// <summary>The available versions for this mod.</summary>
+ public UpdateManifestVersionModel[]? Versions { get; }
+
+ /*********
+ ** Public methods
+ *********/
/// <summary>Construct an instance.</summary>
/// <param name="name">The mod's name.</param>
- /// <param name="url">The mod's URL.</param>
- /// <param name="versions">The versions for this mod.</param>
- public UpdateManifestModModel(string name, string? url, UpdateManifestVersionModel[] versions) {
+ /// <param name="url">The mod page URL from which to download updates.</param>
+ /// <param name="versions">The available versions for this mod.</param>
+ public UpdateManifestModModel(string? name, string? url, UpdateManifestVersionModel[]? versions)
+ {
this.Name = name;
this.Url = url;
this.Versions = versions;
}
}
}
-