From 2eb9442c0a62036967fd2622e13713737d150dac Mon Sep 17 00:00:00 2001 From: Aviv Cohn Date: Tue, 9 Dec 2025 22:27:07 -0500 Subject: [PATCH] feat: remove unused imports, seperate StatusProperties --- .../UDMApi/CustomProperties.cs | 7 +----- .../UDMApi/DeviceStatus.cs | 7 +----- .../UDMApi/RoomResponse.cs | 6 +---- .../UDMApi/StandardProperties.cs | 7 +----- .../UDMApi/StatusProperties.cs | 23 +++++++++++++++++++ 5 files changed, 27 insertions(+), 23 deletions(-) create mode 100644 src/PepperDash.Essentials.Core/UDMApi/StatusProperties.cs diff --git a/src/PepperDash.Essentials.Core/UDMApi/CustomProperties.cs b/src/PepperDash.Essentials.Core/UDMApi/CustomProperties.cs index c0d6abee..938a1c73 100644 --- a/src/PepperDash.Essentials.Core/UDMApi/CustomProperties.cs +++ b/src/PepperDash.Essentials.Core/UDMApi/CustomProperties.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using Newtonsoft.Json; +using Newtonsoft.Json; namespace PepperDash.Essentials.Core.UDMApi { diff --git a/src/PepperDash.Essentials.Core/UDMApi/DeviceStatus.cs b/src/PepperDash.Essentials.Core/UDMApi/DeviceStatus.cs index b977f248..5e06da9c 100644 --- a/src/PepperDash.Essentials.Core/UDMApi/DeviceStatus.cs +++ b/src/PepperDash.Essentials.Core/UDMApi/DeviceStatus.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using Newtonsoft.Json; +using Newtonsoft.Json; namespace PepperDash.Essentials.Core.UDMApi { diff --git a/src/PepperDash.Essentials.Core/UDMApi/RoomResponse.cs b/src/PepperDash.Essentials.Core/UDMApi/RoomResponse.cs index f7ccd3bc..c1abaaf5 100644 --- a/src/PepperDash.Essentials.Core/UDMApi/RoomResponse.cs +++ b/src/PepperDash.Essentials.Core/UDMApi/RoomResponse.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; +using System.Collections.Generic; using Newtonsoft.Json; namespace PepperDash.Essentials.Core.UDMApi diff --git a/src/PepperDash.Essentials.Core/UDMApi/StandardProperties.cs b/src/PepperDash.Essentials.Core/UDMApi/StandardProperties.cs index 801d484e..daf46482 100644 --- a/src/PepperDash.Essentials.Core/UDMApi/StandardProperties.cs +++ b/src/PepperDash.Essentials.Core/UDMApi/StandardProperties.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using Newtonsoft.Json; +using Newtonsoft.Json; namespace PepperDash.Essentials.Core.UDMApi { diff --git a/src/PepperDash.Essentials.Core/UDMApi/StatusProperties.cs b/src/PepperDash.Essentials.Core/UDMApi/StatusProperties.cs new file mode 100644 index 00000000..e3309658 --- /dev/null +++ b/src/PepperDash.Essentials.Core/UDMApi/StatusProperties.cs @@ -0,0 +1,23 @@ +using Newtonsoft.Json; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace PepperDash.Essentials.Core.UDMApi +{ + internal class StatusProperties + { + /// + /// Dictionary of device statuses keyed by device identifier + /// + [JsonProperty("devices")] + public Dictionary devices { get; set; } + + public StatusProperties() + { + devices = new Dictionary(); + } + } +}