diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-12-25 01:47:10 -0500 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-12-25 01:47:10 -0500 |
commit | adee66b3b4ea111b0082a31108e55726fab10643 (patch) | |
tree | 64ae5b868dfeefa8a50a2474237b9cea1c540866 /src/SMAPI.Web/Framework/Clients/GitHub | |
parent | bbd021f8736d1496f34a58b12bb0ee6c341d1c5e (diff) | |
download | SMAPI-adee66b3b4ea111b0082a31108e55726fab10643.tar.gz SMAPI-adee66b3b4ea111b0082a31108e55726fab10643.tar.bz2 SMAPI-adee66b3b4ea111b0082a31108e55726fab10643.zip |
add basic download page (#411)
Diffstat (limited to 'src/SMAPI.Web/Framework/Clients/GitHub')
-rw-r--r-- | src/SMAPI.Web/Framework/Clients/GitHub/GitAsset.cs | 20 | ||||
-rw-r--r-- | src/SMAPI.Web/Framework/Clients/GitHub/GitRelease.cs | 6 |
2 files changed, 26 insertions, 0 deletions
diff --git a/src/SMAPI.Web/Framework/Clients/GitHub/GitAsset.cs b/src/SMAPI.Web/Framework/Clients/GitHub/GitAsset.cs new file mode 100644 index 00000000..73ce4025 --- /dev/null +++ b/src/SMAPI.Web/Framework/Clients/GitHub/GitAsset.cs @@ -0,0 +1,20 @@ +using Newtonsoft.Json; + +namespace StardewModdingAPI.Web.Framework.Clients.GitHub +{ + /// <summary>A GitHub download attached to a release.</summary> + internal class GitAsset + { + /// <summary>The file name.</summary> + [JsonProperty("name")] + public string FileName { get; set; } + + /// <summary>The file content type.</summary> + [JsonProperty("content_type")] + public string ContentType { get; set; } + + /// <summary>The download URL.</summary> + [JsonProperty("browser_download_url")] + public string DownloadUrl { get; set; } + } +} diff --git a/src/SMAPI.Web/Framework/Clients/GitHub/GitRelease.cs b/src/SMAPI.Web/Framework/Clients/GitHub/GitRelease.cs index 0a47f3b4..b944088d 100644 --- a/src/SMAPI.Web/Framework/Clients/GitHub/GitRelease.cs +++ b/src/SMAPI.Web/Framework/Clients/GitHub/GitRelease.cs @@ -15,5 +15,11 @@ namespace StardewModdingAPI.Web.Framework.Clients.GitHub /// <summary>The semantic version string.</summary> [JsonProperty("tag_name")] public string Tag { get; set; } + + /// <summary>The Markdown description for the release.</summary> + public string Body { get; set; } + + /// <summary>The attached files.</summary> + public GitAsset[] Assets { get; set; } } } |