summaryrefslogtreecommitdiff
path: root/src/SMAPI.Web/Framework/Clients/GitHub/GitRepo.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2019-07-29 16:43:25 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2019-09-14 18:59:29 -0400
commit1d085df5b796e02b3e9e6874bd4e5684e840cb92 (patch)
tree9c0bb39b7bc6e4618ed2bad4ca17af6f82b1a737 /src/SMAPI.Web/Framework/Clients/GitHub/GitRepo.cs
parent2b4bc2c282e17ba431f9a6ec1892b87a37eb4bb7 (diff)
downloadSMAPI-1d085df5b796e02b3e9e6874bd4e5684e840cb92.tar.gz
SMAPI-1d085df5b796e02b3e9e6874bd4e5684e840cb92.tar.bz2
SMAPI-1d085df5b796e02b3e9e6874bd4e5684e840cb92.zip
track license info for mod GitHub repos (#651)
Diffstat (limited to 'src/SMAPI.Web/Framework/Clients/GitHub/GitRepo.cs')
-rw-r--r--src/SMAPI.Web/Framework/Clients/GitHub/GitRepo.cs20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/SMAPI.Web/Framework/Clients/GitHub/GitRepo.cs b/src/SMAPI.Web/Framework/Clients/GitHub/GitRepo.cs
new file mode 100644
index 00000000..7d80576e
--- /dev/null
+++ b/src/SMAPI.Web/Framework/Clients/GitHub/GitRepo.cs
@@ -0,0 +1,20 @@
+using Newtonsoft.Json;
+
+namespace StardewModdingAPI.Web.Framework.Clients.GitHub
+{
+ /// <summary>Basic metadata about a GitHub project.</summary>
+ internal class GitRepo
+ {
+ /// <summary>The full repository name, including the owner.</summary>
+ [JsonProperty("full_name")]
+ public string FullName { get; set; }
+
+ /// <summary>The URL to the repository web page, if any.</summary>
+ [JsonProperty("html_url")]
+ public string WebUrl { get; set; }
+
+ /// <summary>The code license, if any.</summary>
+ [JsonProperty("license")]
+ public GitLicense License { get; set; }
+ }
+}