diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-09-22 03:01:40 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-09-22 03:01:40 -0400 |
commit | 86d4827df211cc28549acb88ee7cb08d6cc4d4aa (patch) | |
tree | cfe021ee92fb8312b12ca83eda8575e4271cf8a6 /src/StardewModdingAPI.Web/Models/ModInfoModel.cs | |
parent | 399b98b36b6111d364702b117fff3c5f21b8783a (diff) | |
download | SMAPI-86d4827df211cc28549acb88ee7cb08d6cc4d4aa.tar.gz SMAPI-86d4827df211cc28549acb88ee7cb08d6cc4d4aa.tar.bz2 SMAPI-86d4827df211cc28549acb88ee7cb08d6cc4d4aa.zip |
simplify input & output format (#336)
Diffstat (limited to 'src/StardewModdingAPI.Web/Models/ModInfoModel.cs')
-rw-r--r-- | src/StardewModdingAPI.Web/Models/ModInfoModel.cs | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/StardewModdingAPI.Web/Models/ModInfoModel.cs b/src/StardewModdingAPI.Web/Models/ModInfoModel.cs index 723d6c73..180420cd 100644 --- a/src/StardewModdingAPI.Web/Models/ModInfoModel.cs +++ b/src/StardewModdingAPI.Web/Models/ModInfoModel.cs @@ -8,9 +8,6 @@ namespace StardewModdingAPI.Web.Models /********* ** Accessors *********/ - /// <summary>The namespaced mod key.</summary> - public string ModKey { get; } - /// <summary>The mod name.</summary> public string Name { get; } @@ -28,15 +25,13 @@ namespace StardewModdingAPI.Web.Models ** Public methods *********/ /// <summary>Construct a valid instance.</summary> - /// <param name="modKey">The namespaced mod key.</param> /// <param name="name">The mod name.</param> /// <param name="version">The mod's semantic version number.</param> /// <param name="url">The mod's web URL.</param> /// <param name="error">The error message indicating why the mod is invalid (if applicable).</param> [JsonConstructor] - public ModInfoModel(string modKey, string name, string version, string url, string error = null) + public ModInfoModel(string name, string version, string url, string error = null) { - this.ModKey = modKey; this.Name = name; this.Version = version; this.Url = url; @@ -44,11 +39,9 @@ namespace StardewModdingAPI.Web.Models } /// <summary>Construct an valid instance.</summary> - /// <param name="modKey">The namespaced mod key.</param> /// <param name="error">The error message indicating why the mod is invalid.</param> - public ModInfoModel(string modKey, string error) + public ModInfoModel(string error) { - this.ModKey = modKey; this.Error = error; } } |