summaryrefslogtreecommitdiff
path: root/src/SMAPI.Web/Framework/Clients/GitHub/GitLicense.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/SMAPI.Web/Framework/Clients/GitHub/GitLicense.cs')
-rw-r--r--src/SMAPI.Web/Framework/Clients/GitHub/GitLicense.cs20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/SMAPI.Web/Framework/Clients/GitHub/GitLicense.cs b/src/SMAPI.Web/Framework/Clients/GitHub/GitLicense.cs
new file mode 100644
index 00000000..736efbe6
--- /dev/null
+++ b/src/SMAPI.Web/Framework/Clients/GitHub/GitLicense.cs
@@ -0,0 +1,20 @@
+using Newtonsoft.Json;
+
+namespace StardewModdingAPI.Web.Framework.Clients.GitHub
+{
+ /// <summary>The license info for a GitHub project.</summary>
+ internal class GitLicense
+ {
+ /// <summary>The license display name.</summary>
+ [JsonProperty("name")]
+ public string Name { get; set; }
+
+ /// <summary>The SPDX ID for the license.</summary>
+ [JsonProperty("spdx_id")]
+ public string SpdxId { get; set; }
+
+ /// <summary>The URL for the license info.</summary>
+ [JsonProperty("url")]
+ public string Url { get; set; }
+ }
+}