Skip to content
This repository has been archived by the owner on Oct 27, 2022. It is now read-only.

Commit

Permalink
#39 Add missing accessors to JSON struct
Browse files Browse the repository at this point in the history
Signed-off-by: Gerard Braad <[email protected]>
  • Loading branch information
gbraad committed Mar 11, 2021
1 parent c9ae216 commit 250ab2e
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions DaemonCommander/ResponseClasses.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,17 @@ public class VersionResult

struct Config
{
public string bundle;
public int cpus;
public string nameserver;
public int memory;
[JsonPropertyName("bundle")]
public string bundle { get; set; }

[JsonPropertyName("cpus")]
public int cpus { get; set; }

[JsonPropertyName("nameserver")]
public string nameserver { get; set; }

[JsonPropertyName("memory")]
public int memory { get; set; }

[JsonPropertyName("disable-update-check")]
public bool DisableUpdateCheck { get; set; }
Expand Down Expand Up @@ -117,7 +124,7 @@ struct Config
public bool SkipCheckHypervInstalled { get; set; }

[JsonPropertyName("skip-check-hyperv-service-running")]
public bool SkipCheckHypervServiceRunning;
public bool SkipCheckHypervServiceRunning { get; set; }

[JsonPropertyName("skip-check-hyperv-switch")]
public bool SkipCheckHypervSwitch { get; set; }
Expand Down

0 comments on commit 250ab2e

Please sign in to comment.