Add json constructor attributes

This commit is contained in:
JustArchi
2019-01-11 01:02:58 +01:00
parent 4dca323726
commit b8d000bf13
9 changed files with 23 additions and 22 deletions

View File

@@ -197,7 +197,7 @@ namespace ArchiSteamFarm {
private string _ChangelogHTML;
private string _ChangelogPlainText;
// Deserialized from JSON
[JsonConstructor]
private ReleaseResponse() { }
internal sealed class Asset {
@@ -210,7 +210,7 @@ namespace ArchiSteamFarm {
[JsonProperty(PropertyName = "size", Required = Required.Always)]
internal readonly uint Size;
// Deserialized from JSON
[JsonConstructor]
private Asset() { }
}
}