feat: Add new status actions for call history, codec cameras, room presets, content sharing, room event schedule, shutdown prompt, and tech password messengers

This commit is contained in:
Neil Dorin 2026-05-13 17:00:23 -06:00
parent 91aa0efa5f
commit b9dcec587d
9 changed files with 16 additions and 9 deletions

View file

@ -31,6 +31,7 @@ namespace PepperDash.Essentials.AppServer.Messengers
base.RegisterActions(); base.RegisterActions();
AddAction("/fullStatus", (id, content) => PostCallHistory()); AddAction("/fullStatus", (id, content) => PostCallHistory());
AddAction("/callHistoryStatus", (id, content) => PostCallHistory());
AddAction("/getCallHistory", (id, content) => PostCallHistory()); AddAction("/getCallHistory", (id, content) => PostCallHistory());
} }

View file

@ -27,6 +27,8 @@ namespace PepperDash.Essentials.AppServer.Messengers
{ {
_codec = codec ?? throw new ArgumentNullException(nameof(codec)); _codec = codec ?? throw new ArgumentNullException(nameof(codec));
_cameraCodec = codec as IHasCodecCameras ?? throw new ArgumentException("codec must implement IHasCodecCameras", nameof(codec)); _cameraCodec = codec as IHasCodecCameras ?? throw new ArgumentException("codec must implement IHasCodecCameras", nameof(codec));
_cameraCodec.CameraSelected += CameraCodec_CameraSelected;
} }
/// <inheritdoc /> /// <inheritdoc />
@ -38,7 +40,8 @@ namespace PepperDash.Essentials.AppServer.Messengers
_cameraCodec.CameraSelected += CameraCodec_CameraSelected; _cameraCodec.CameraSelected += CameraCodec_CameraSelected;
AddAction("/fullStatus", (id, content) => PostSelectedCamera()); AddAction("/fullStatus", (id, content) => SendFullStatus());
AddAction("/codecCamerasStatus", (id, content) => SendFullStatus());
AddAction("/cameraSelect", (id, content) => AddAction("/cameraSelect", (id, content) =>
{ {

View file

@ -31,6 +31,7 @@ namespace PepperDash.Essentials.AppServer.Messengers
base.RegisterActions(); base.RegisterActions();
AddAction("/fullStatus", (id, content) => SendFullStatus(id)); AddAction("/fullStatus", (id, content) => SendFullStatus(id));
AddAction("/roomPresetsStatus", (id, content) => SendFullStatus(id));
} }
private void Presets_ListHasChanged(object sender, EventArgs e) private void Presets_ListHasChanged(object sender, EventArgs e)

View file

@ -29,6 +29,7 @@ namespace PepperDash.Essentials.AppServer.Messengers
base.RegisterActions(); base.RegisterActions();
AddAction("/fullStatus", (id, content) => SendFullStatus(id)); AddAction("/fullStatus", (id, content) => SendFullStatus(id));
AddAction("/contentSharingStatus", (id, content) => SendFullStatus(id));
AddAction("/sharingStart", (id, content) => _sharing.StartSharing()); AddAction("/sharingStart", (id, content) => _sharing.StartSharing());
AddAction("/sharingStop", (id, content) => _sharing.StopSharing()); AddAction("/sharingStop", (id, content) => _sharing.StopSharing());
} }

View file

@ -33,7 +33,12 @@ public class IRoomEventScheduleMessenger : MessengerBase
protected override void RegisterActions() protected override void RegisterActions()
{ {
AddAction("/saveScheduledEvents", (id, content) => SaveScheduledEvents(content.ToObject<List<ScheduledEventConfig>>())); AddAction("/saveScheduledEvents", (id, content) => SaveScheduledEvents(content.ToObject<List<ScheduledEventConfig>>()));
AddAction("/status", (id, content) => AddAction("/fullStatus", (id, content) =>
{
var events = _room.GetScheduledEvents();
SendFullStatus(events, id);
});
AddAction("/roomEventStatus", (id, content) =>
{ {
var events = _room.GetScheduledEvents(); var events = _room.GetScheduledEvents();

View file

@ -27,8 +27,7 @@ namespace PepperDash.Essentials.AppServer.Messengers
/// <inheritdoc /> /// <inheritdoc />
protected override void RegisterActions() protected override void RegisterActions()
{ {
AddAction("/status", (id, content) => SendFullStatus(id)); AddAction("/fullStatus", (id, content) => SendFullStatus(id));
AddAction("/shutdownPromptStatus", (id, content) => SendFullStatus(id)); AddAction("/shutdownPromptStatus", (id, content) => SendFullStatus(id));
AddAction("/setShutdownPromptSeconds", (id, content) => AddAction("/setShutdownPromptSeconds", (id, content) =>

View file

@ -27,8 +27,7 @@ namespace PepperDash.Essentials.AppServer.Messengers
protected override void RegisterActions() protected override void RegisterActions()
{ {
AddAction("/status", (id, content) => SendFullStatus(id)); AddAction("/fullStatus", (id, content) => SendFullStatus(id));
AddAction("/techPasswordStatus", (id, content) => SendFullStatus(id)); AddAction("/techPasswordStatus", (id, content) => SendFullStatus(id));
AddAction("/validateTechPassword", (id, content) => AddAction("/validateTechPassword", (id, content) =>

View file

@ -11,8 +11,6 @@ using PepperDash.Essentials.Core.Shades;
using PepperDash.Essentials.Devices.Common.AudioCodec; using PepperDash.Essentials.Devices.Common.AudioCodec;
using PepperDash.Essentials.Devices.Common.Cameras; using PepperDash.Essentials.Devices.Common.Cameras;
using PepperDash.Essentials.Devices.Common.Codec; using PepperDash.Essentials.Devices.Common.Codec;
using PepperDash.Essentials.Devices.Common.Displays;
using PepperDash.Essentials.Devices.Common.SoftCodec;
using PepperDash.Essentials.Devices.Common.VideoCodec; using PepperDash.Essentials.Devices.Common.VideoCodec;
using PepperDash.Essentials.Devices.Common.VideoCodec.Interfaces; using PepperDash.Essentials.Devices.Common.VideoCodec.Interfaces;
using PepperDash.Essentials.Room.MobileControl; using PepperDash.Essentials.Room.MobileControl;

View file

@ -107,7 +107,7 @@ namespace PepperDash.Essentials.RoomBridges
// Source Changes and room off // Source Changes and room off
AddAction("/status", (id, content) => AddAction("/fullStatus", (id, content) =>
{ {
SendFullStatusForClientId(id, Room); SendFullStatusForClientId(id, Room);
}); });