mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-10 10:15:01 +00:00
docs: add missing XML comments for Mobile Control Project
This commit is contained in:
@@ -7,17 +7,24 @@ using PepperDash.Essentials.AppServer.Messengers;
|
||||
namespace PepperDash.Essentials.Touchpanel
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents a ITswAppControlMessenger
|
||||
/// Messenger for controlling the Zoom App on a TSW Panel that supports the Zoom Room Control Application
|
||||
/// </summary>
|
||||
public class ITswAppControlMessenger : MessengerBase
|
||||
{
|
||||
private readonly ITswAppControl _appControl;
|
||||
|
||||
/// <summary>
|
||||
/// Create an instance of the <see cref="ITswAppControlMessenger"/> class.
|
||||
/// </summary>
|
||||
/// <param name="key">The key for this messenger</param>
|
||||
/// <param name="messagePath">The message path for this messenger</param>
|
||||
/// <param name="device">The device for this messenger</param>
|
||||
public ITswAppControlMessenger(string key, string messagePath, Device device) : base(key, messagePath, device)
|
||||
{
|
||||
_appControl = device as ITswAppControl;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void RegisterActions()
|
||||
{
|
||||
if (_appControl == null)
|
||||
@@ -43,14 +50,14 @@ namespace PepperDash.Essentials.Touchpanel
|
||||
};
|
||||
}
|
||||
|
||||
private void SendFullStatus()
|
||||
private void SendFullStatus(string id = null)
|
||||
{
|
||||
var message = new TswAppStateMessage
|
||||
{
|
||||
AppOpen = _appControl.AppOpenFeedback.BoolValue,
|
||||
};
|
||||
|
||||
PostStatusMessage(message);
|
||||
PostStatusMessage(message, id);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -59,6 +66,9 @@ namespace PepperDash.Essentials.Touchpanel
|
||||
/// </summary>
|
||||
public class TswAppStateMessage : DeviceStateMessageBase
|
||||
{
|
||||
/// <summary>
|
||||
/// True if the Zoom app is open on a TSW panel
|
||||
/// </summary>
|
||||
[JsonProperty("appOpen", NullValueHandling = NullValueHandling.Ignore)]
|
||||
public bool? AppOpen { get; set; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user