mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-07-02 02:28:19 +00:00
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:
parent
91aa0efa5f
commit
b9dcec587d
9 changed files with 16 additions and 9 deletions
|
|
@ -31,6 +31,7 @@ namespace PepperDash.Essentials.AppServer.Messengers
|
|||
base.RegisterActions();
|
||||
|
||||
AddAction("/fullStatus", (id, content) => PostCallHistory());
|
||||
AddAction("/callHistoryStatus", (id, content) => PostCallHistory());
|
||||
|
||||
AddAction("/getCallHistory", (id, content) => PostCallHistory());
|
||||
}
|
||||
|
|
|
|||
|
|
@ -27,6 +27,8 @@ namespace PepperDash.Essentials.AppServer.Messengers
|
|||
{
|
||||
_codec = codec ?? throw new ArgumentNullException(nameof(codec));
|
||||
_cameraCodec = codec as IHasCodecCameras ?? throw new ArgumentException("codec must implement IHasCodecCameras", nameof(codec));
|
||||
|
||||
_cameraCodec.CameraSelected += CameraCodec_CameraSelected;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
|
|
@ -38,7 +40,8 @@ namespace PepperDash.Essentials.AppServer.Messengers
|
|||
|
||||
_cameraCodec.CameraSelected += CameraCodec_CameraSelected;
|
||||
|
||||
AddAction("/fullStatus", (id, content) => PostSelectedCamera());
|
||||
AddAction("/fullStatus", (id, content) => SendFullStatus());
|
||||
AddAction("/codecCamerasStatus", (id, content) => SendFullStatus());
|
||||
|
||||
AddAction("/cameraSelect", (id, content) =>
|
||||
{
|
||||
|
|
|
|||
|
|
@ -31,6 +31,7 @@ namespace PepperDash.Essentials.AppServer.Messengers
|
|||
base.RegisterActions();
|
||||
|
||||
AddAction("/fullStatus", (id, content) => SendFullStatus(id));
|
||||
AddAction("/roomPresetsStatus", (id, content) => SendFullStatus(id));
|
||||
}
|
||||
|
||||
private void Presets_ListHasChanged(object sender, EventArgs e)
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@ namespace PepperDash.Essentials.AppServer.Messengers
|
|||
base.RegisterActions();
|
||||
|
||||
AddAction("/fullStatus", (id, content) => SendFullStatus(id));
|
||||
AddAction("/contentSharingStatus", (id, content) => SendFullStatus(id));
|
||||
AddAction("/sharingStart", (id, content) => _sharing.StartSharing());
|
||||
AddAction("/sharingStop", (id, content) => _sharing.StopSharing());
|
||||
}
|
||||
|
|
|
|||
|
|
@ -33,7 +33,12 @@ public class IRoomEventScheduleMessenger : MessengerBase
|
|||
protected override void RegisterActions()
|
||||
{
|
||||
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();
|
||||
|
||||
|
|
|
|||
|
|
@ -27,8 +27,7 @@ namespace PepperDash.Essentials.AppServer.Messengers
|
|||
/// <inheritdoc />
|
||||
protected override void RegisterActions()
|
||||
{
|
||||
AddAction("/status", (id, content) => SendFullStatus(id));
|
||||
|
||||
AddAction("/fullStatus", (id, content) => SendFullStatus(id));
|
||||
AddAction("/shutdownPromptStatus", (id, content) => SendFullStatus(id));
|
||||
|
||||
AddAction("/setShutdownPromptSeconds", (id, content) =>
|
||||
|
|
|
|||
|
|
@ -27,8 +27,7 @@ namespace PepperDash.Essentials.AppServer.Messengers
|
|||
protected override void RegisterActions()
|
||||
{
|
||||
|
||||
AddAction("/status", (id, content) => SendFullStatus(id));
|
||||
|
||||
AddAction("/fullStatus", (id, content) => SendFullStatus(id));
|
||||
AddAction("/techPasswordStatus", (id, content) => SendFullStatus(id));
|
||||
|
||||
AddAction("/validateTechPassword", (id, content) =>
|
||||
|
|
|
|||
|
|
@ -11,8 +11,6 @@ using PepperDash.Essentials.Core.Shades;
|
|||
using PepperDash.Essentials.Devices.Common.AudioCodec;
|
||||
using PepperDash.Essentials.Devices.Common.Cameras;
|
||||
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.Interfaces;
|
||||
using PepperDash.Essentials.Room.MobileControl;
|
||||
|
|
|
|||
|
|
@ -107,7 +107,7 @@ namespace PepperDash.Essentials.RoomBridges
|
|||
|
||||
|
||||
// Source Changes and room off
|
||||
AddAction("/status", (id, content) =>
|
||||
AddAction("/fullStatus", (id, content) =>
|
||||
{
|
||||
SendFullStatusForClientId(id, Room);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue