diff --git a/src/Pepperdash Core/CommunicationExtras.cs b/src/Pepperdash Core/CommunicationExtras.cs
index e780efd..9db5420 100644
--- a/src/Pepperdash Core/CommunicationExtras.cs
+++ b/src/Pepperdash Core/CommunicationExtras.cs
@@ -5,6 +5,7 @@ using System.Text;
using Crestron.SimplSharp;
using Crestron.SimplSharp.CrestronSockets;
using System.Text.RegularExpressions;
+using Newtonsoft.Json;
namespace PepperDash.Core
{
@@ -25,6 +26,7 @@ namespace PepperDash.Core
///
/// Indicates connection status
///
+ [JsonProperty("isConnected")]
bool IsConnected { get; }
///
/// Connect to the device
@@ -70,6 +72,7 @@ namespace PepperDash.Core
///
/// Object to enable stream debugging
///
+ [JsonProperty("streamDebugging")]
CommunicationStreamDebugging StreamDebugging { get; }
}
@@ -87,7 +90,9 @@ namespace PepperDash.Core
///
/// The current socket status of the client
///
- SocketStatus ClientStatus { get; }
+ [JsonProperty("clinetStatus")]
+ [JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
+ SocketStatus ClientStatus { get; }
}
///
@@ -106,10 +111,12 @@ namespace PepperDash.Core
///
/// Enable automatic recconnect
///
+ [JsonProperty("autoReconnect")]
bool AutoReconnect { get; set; }
///
/// Interval in ms to attempt automatic recconnections
///
+ [JsonProperty("autoReconnectIntervalMs")]
int AutoReconnectIntervalMs { get; set; }
}