Skip to content

Commit

Permalink
Netkan/KerbalstuffMod: Json properties are explicitly marked.
Browse files Browse the repository at this point in the history
For #1218.
  • Loading branch information
pjf committed Jul 15, 2015
1 parent 011755a commit c259443
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions Netkan/Sources/Kerbalstuff/KerbalstuffMod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,15 @@ namespace CKAN.NetKAN.Sources.Kerbalstuff
{
internal class KerbalstuffMod
{
public int id; // KSID

// These get filled in from JSON deserialisation.
public string license;
public string name;
public string short_description;
public string author;
public KSVersion[] versions;
public Uri website;
public Uri source_code;
public int default_version_id;
[JsonProperty] public int id; // KSID
[JsonProperty] public string license;
[JsonProperty] public string name;
[JsonProperty] public string short_description;
[JsonProperty] public string author;
[JsonProperty] public KSVersion[] versions;
[JsonProperty] public Uri website;
[JsonProperty] public Uri source_code;
[JsonProperty] public int default_version_id;
[JsonConverter(typeof(KSVersion.JsonConvertFromRelativeKsUri))]
public Uri background;

Expand Down

0 comments on commit c259443

Please sign in to comment.