aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.UI.Common/Models/Github
diff options
context:
space:
mode:
Diffstat (limited to 'src/Ryujinx.UI.Common/Models/Github')
-rw-r--r--src/Ryujinx.UI.Common/Models/Github/GithubReleaseAssetJsonResponse.cs9
-rw-r--r--src/Ryujinx.UI.Common/Models/Github/GithubReleasesJsonResponse.cs10
-rw-r--r--src/Ryujinx.UI.Common/Models/Github/GithubReleasesJsonSerializerContext.cs9
3 files changed, 28 insertions, 0 deletions
diff --git a/src/Ryujinx.UI.Common/Models/Github/GithubReleaseAssetJsonResponse.cs b/src/Ryujinx.UI.Common/Models/Github/GithubReleaseAssetJsonResponse.cs
new file mode 100644
index 00000000..8f528dc0
--- /dev/null
+++ b/src/Ryujinx.UI.Common/Models/Github/GithubReleaseAssetJsonResponse.cs
@@ -0,0 +1,9 @@
+namespace Ryujinx.UI.Common.Models.Github
+{
+ public class GithubReleaseAssetJsonResponse
+ {
+ public string Name { get; set; }
+ public string State { get; set; }
+ public string BrowserDownloadUrl { get; set; }
+ }
+}
diff --git a/src/Ryujinx.UI.Common/Models/Github/GithubReleasesJsonResponse.cs b/src/Ryujinx.UI.Common/Models/Github/GithubReleasesJsonResponse.cs
new file mode 100644
index 00000000..0250e109
--- /dev/null
+++ b/src/Ryujinx.UI.Common/Models/Github/GithubReleasesJsonResponse.cs
@@ -0,0 +1,10 @@
+using System.Collections.Generic;
+
+namespace Ryujinx.UI.Common.Models.Github
+{
+ public class GithubReleasesJsonResponse
+ {
+ public string Name { get; set; }
+ public List<GithubReleaseAssetJsonResponse> Assets { get; set; }
+ }
+}
diff --git a/src/Ryujinx.UI.Common/Models/Github/GithubReleasesJsonSerializerContext.cs b/src/Ryujinx.UI.Common/Models/Github/GithubReleasesJsonSerializerContext.cs
new file mode 100644
index 00000000..71864257
--- /dev/null
+++ b/src/Ryujinx.UI.Common/Models/Github/GithubReleasesJsonSerializerContext.cs
@@ -0,0 +1,9 @@
+using System.Text.Json.Serialization;
+
+namespace Ryujinx.UI.Common.Models.Github
+{
+ [JsonSerializable(typeof(GithubReleasesJsonResponse), GenerationMode = JsonSourceGenerationMode.Metadata)]
+ public partial class GithubReleasesJsonSerializerContext : JsonSerializerContext
+ {
+ }
+}