fix: handle null properties in DeviceMessageBase and DeviceStateMessageBase

This commit is contained in:
Neil Dorin 2026-06-10 13:34:05 -06:00 committed by equinoy
parent 162a06f9e9
commit d18fca8a98
2 changed files with 6 additions and 5 deletions

View file

@ -12,7 +12,8 @@ namespace PepperDash.Essentials.AppServer.Messengers
/// <summary>
/// The interfaces implmented by the device sending the messsage
/// </summary>
[JsonProperty("interfaces")]
[JsonProperty("interfaces", NullValueHandling = NullValueHandling.Ignore)]
[Obsolete("Interfaces is no longer supported and will be removed in a future release. Interfaces for all devices are now retrieved via the /joinroom endpoint in the MobileControlWebsocketServer")]
public List<string> Interfaces { get; private set; }
/// <summary>