Skip to content

Commit

Permalink
Add [JsonConstructor] attribute to SmartGlass.Device
Browse files Browse the repository at this point in the history
  • Loading branch information
tuxuser committed May 3, 2019
1 parent fb4f7ac commit 2fc3759
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions SmartGlass/Device.cs
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ public static async Task<Device> PowerOnAsync(string liveId, int times = 5, int
/// <param name="name">Friendly name</param>
/// <param name="liveId">Live ID</param>
/// <param name="hardwareId">Hardware Id</param>
[JsonConstructor]
public Device(DeviceType type, IPAddress address, string name, string liveId, Guid hardwareId)
{
Address = address;
Expand Down

0 comments on commit 2fc3759

Please sign in to comment.