Compare commits

...

4 Commits

Author SHA1 Message Date
Andrew Welker
592607f3c8 Merge pull request #1296 from PepperDash/feature/add-IHasCamerasMessenger 2025-07-24 18:53:05 -05:00
Neil Dorin
ea0a779f8b Merge branch 'feature/add-IHasCamerasMessenger' of https://github.com/PepperDash/Essentials into feature/add-IHasCamerasMessenger 2025-07-24 16:40:06 -06:00
Neil Dorin
86e4d2f7fb feat: Update SendFullStatus to target specific clients
Modified the `SendFullStatus` method to accept a `string clientId` parameter, allowing it to send status messages to specific clients. Updated the action for `"/fullStatus"` to pass the client ID and adjusted the `PostStatusMessage` call accordingly.
2025-07-24 16:39:28 -06:00
Neil Dorin
0069233e13 Update src/PepperDash.Essentials.Devices.Common/Cameras/CameraControl.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-07-24 16:16:05 -06:00
2 changed files with 5 additions and 5 deletions

View File

@@ -54,9 +54,9 @@ namespace PepperDash.Essentials.Devices.Common.Cameras
StringFeedback SelectedCameraFeedback { get; }
/// <summary>
///
/// Selects a camera from the list of available cameras based on the provided key.
/// </summary>
/// <param name="key"></param>
/// <param name="key">The unique identifier or name of the camera to select.</param>
void SelectCamera(string key);
}

View File

@@ -51,7 +51,7 @@ namespace PepperDash.Essentials.AppServer.Messengers
AddAction("/fullStatus", (id, context) =>
{
SendFullStatus();
SendFullStatus(id);
});
AddAction("/selectCamera", (id, content) =>
@@ -69,7 +69,7 @@ namespace PepperDash.Essentials.AppServer.Messengers
});
}
private void SendFullStatus()
private void SendFullStatus(string clientId)
{
var state = new IHasCamerasStateMessage
{
@@ -77,7 +77,7 @@ namespace PepperDash.Essentials.AppServer.Messengers
SelectedCamera = CameraController.SelectedCamera
};
PostStatusMessage(state);
PostStatusMessage(state, clientId);
}