diff --git a/src/Q42.HueApi/Models/Groups/Group.cs b/src/Q42.HueApi/Models/Groups/Group.cs index 1ef39b0e..3055b596 100644 --- a/src/Q42.HueApi/Models/Groups/Group.cs +++ b/src/Q42.HueApi/Models/Groups/Group.cs @@ -14,7 +14,6 @@ namespace Q42.HueApi.Models.Groups [DataContract] public class Group { - [DataMember] public string Id { get; set; } [DataMember(Name = "name")] diff --git a/src/Q42.HueApi/Models/Light.cs b/src/Q42.HueApi/Models/Light.cs index a3fcc04b..57a3fd88 100644 --- a/src/Q42.HueApi/Models/Light.cs +++ b/src/Q42.HueApi/Models/Light.cs @@ -10,7 +10,6 @@ namespace Q42.HueApi [DataContract] public class Light { - [DataMember(Name = "id")] public string Id { get; set; } [DataMember(Name = "state")] diff --git a/src/Q42.HueApi/Models/ResourceLink.cs b/src/Q42.HueApi/Models/ResourceLink.cs index d6784b74..4a5570fa 100644 --- a/src/Q42.HueApi/Models/ResourceLink.cs +++ b/src/Q42.HueApi/Models/ResourceLink.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; @@ -15,7 +15,6 @@ public ResourceLink() Links = new List(); } - [DataMember] public string Id { get; set; } /// diff --git a/src/Q42.HueApi/Models/Scene.cs b/src/Q42.HueApi/Models/Scene.cs index f7bf626a..6f80e06d 100644 --- a/src/Q42.HueApi/Models/Scene.cs +++ b/src/Q42.HueApi/Models/Scene.cs @@ -13,7 +13,6 @@ namespace Q42.HueApi.Models [DataContract] public class Scene { - [DataMember] public string Id { get; set; } [DataMember(Name = "name")] diff --git a/src/Q42.HueApi/Models/Schedule/Schedule.cs b/src/Q42.HueApi/Models/Schedule/Schedule.cs index ba892581..70a29fc9 100644 --- a/src/Q42.HueApi/Models/Schedule/Schedule.cs +++ b/src/Q42.HueApi/Models/Schedule/Schedule.cs @@ -9,7 +9,6 @@ namespace Q42.HueApi.Models [DataContract] public class Schedule { - [DataMember] public string Id { get; set; } [DataMember(Name = "name")] diff --git a/src/Q42.HueApi/Models/Sensors/Sensor.cs b/src/Q42.HueApi/Models/Sensors/Sensor.cs index 7e172ee6..98024bfa 100644 --- a/src/Q42.HueApi/Models/Sensors/Sensor.cs +++ b/src/Q42.HueApi/Models/Sensors/Sensor.cs @@ -6,9 +6,6 @@ using Q42.HueApi.Models.Sensors.ZigBee; using System; using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace Q42.HueApi.Models { @@ -38,7 +35,7 @@ public class Sensor : [JsonProperty("capabilities")] public SensorCapabilities Capabilities { get; set; } - [JsonProperty("id")] + [JsonIgnore] public string Id { get; set; } [JsonProperty("manufacturername")] @@ -197,11 +194,11 @@ public class SensorCapabilities : public class SensorInput { - [JsonProperty("repeatintervals")] - public int[] RepeatIntervals { get; set; } = default!; - - [JsonProperty("events")] - public SensorEvent[] Events { get; set; } = default!; + [JsonProperty("repeatintervals")] + public int[] RepeatIntervals { get; set; } = default!; + + [JsonProperty("events")] + public SensorEvent[] Events { get; set; } = default!; } public class SensorEvent diff --git a/src/Q42.HueApi/Models/WhiteList.cs b/src/Q42.HueApi/Models/WhiteList.cs index fc6283c2..ab3a4319 100755 --- a/src/Q42.HueApi/Models/WhiteList.cs +++ b/src/Q42.HueApi/Models/WhiteList.cs @@ -8,7 +8,6 @@ namespace Q42.HueApi [DataContract] public class WhiteList { - [DataMember(Name = "id")] public string Id { get; set; } [DataMember(Name = "last use date")]