mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-07-02 10:38:16 +00:00
30 lines
No EOL
1.1 KiB
C#
30 lines
No EOL
1.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace PepperDash.Essentials.AppServer.Messengers
|
|
{
|
|
/// <summary>
|
|
/// Represents a DeviceStateMessageBase
|
|
/// </summary>
|
|
public class DeviceStateMessageBase : DeviceMessageBase
|
|
{
|
|
/// <summary>
|
|
/// The interfaces implmented by the device sending the messsage
|
|
/// </summary>
|
|
[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>
|
|
/// Sets the interfaces implemented by the device sending the message
|
|
/// </summary>
|
|
/// <param name="interfaces"></param>
|
|
[Obsolete("SetInterfaces 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 void SetInterfaces(List<string> interfaces)
|
|
{
|
|
Interfaces = interfaces;
|
|
}
|
|
}
|
|
|
|
} |