-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The deserialization of the update information error'ed because the deserialization models mixed Newtonsoft.Json models with System.Text.Json models.
- Loading branch information
1 parent
f4cf078
commit 6b6053b
Showing
2 changed files
with
10 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
using System.Text.Json.Serialization; | ||
using Newtonsoft.Json; | ||
|
||
namespace LeagueBroadcast.Update | ||
{ | ||
public sealed class GitHubReleaseInfo | ||
{ | ||
[JsonPropertyName("tag_name")] | ||
public string Version { get; set; } = ""; | ||
[JsonProperty("tag_name")] | ||
public string Version { get; set; } | ||
|
||
[JsonPropertyName("html_url")] | ||
public string Url { get; set; } = ""; | ||
[JsonProperty("html_url")] | ||
public string Url { get; set; } | ||
|
||
[JsonPropertyName("assets")] | ||
public GitHubReleaseAsset[] Assets { get; set; } = new GitHubReleaseAsset[0]; | ||
[JsonProperty("assets")] | ||
public GitHubReleaseAsset[] Assets { get; set; } | ||
} | ||
} |