From f9d3607072f70bb7efd844a8b2855396187c124b Mon Sep 17 00:00:00 2001 From: Andrew Welker Date: Wed, 31 Jan 2024 09:48:46 -0600 Subject: [PATCH] feat: rename MC Message interface --- .../DeviceTypeInterfaces/IMobileControl.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/PepperDash.Essentials.Core/DeviceTypeInterfaces/IMobileControl.cs b/src/PepperDash.Essentials.Core/DeviceTypeInterfaces/IMobileControl.cs index f967f877..cd921e3b 100644 --- a/src/PepperDash.Essentials.Core/DeviceTypeInterfaces/IMobileControl.cs +++ b/src/PepperDash.Essentials.Core/DeviceTypeInterfaces/IMobileControl.cs @@ -20,7 +20,7 @@ namespace PepperDash.Essentials.Core.DeviceTypeInterfaces /// public interface IMobileControl3 : IMobileControl { - void SendMessageObject(object o); + void SendMessageObject(IMobileControlMessage o); void AddAction(string key, Action action); @@ -41,15 +41,15 @@ namespace PepperDash.Essentials.Core.DeviceTypeInterfaces void RegisterWithAppServer(IMobileControl3 appServerController); } - public interface IMobileControlResponseMessage + public interface IMobileControlMessage { [JsonProperty("type")] string Type { get; } - [JsonProperty("clientId")] - object ClientId { get; } + [JsonProperty("clientId", NullValueHandling = NullValueHandling.Ignore)] + string ClientId { get; } - [JsonProperty("content")] + [JsonProperty("content", NullValueHandling = NullValueHandling.Ignore)] JToken Content { get; } }