From 2fc3759675271818e943ba0cdd09970495180762 Mon Sep 17 00:00:00 2001 From: tuxuser <462620+tuxuser@users.noreply.github.com> Date: Fri, 3 May 2019 19:32:19 +0200 Subject: [PATCH] Add [JsonConstructor] attribute to SmartGlass.Device --- SmartGlass/Device.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/SmartGlass/Device.cs b/SmartGlass/Device.cs index ef1517f..a616679 100644 --- a/SmartGlass/Device.cs +++ b/SmartGlass/Device.cs @@ -127,6 +127,7 @@ public static async Task PowerOnAsync(string liveId, int times = 5, int /// Friendly name /// Live ID /// Hardware Id + [JsonConstructor] public Device(DeviceType type, IPAddress address, string name, string liveId, Guid hardwareId) { Address = address;