mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-20 07:56:50 +00:00
refactor: Remove obsolete interfaces and classes to streamline the codebase
This commit is contained in:
parent
7076eafc21
commit
7bec96e68b
10 changed files with 9 additions and 383 deletions
|
|
@ -1,25 +0,0 @@
|
|||
using System;
|
||||
|
||||
namespace PepperDash.Essentials
|
||||
{
|
||||
/// <summary>
|
||||
/// Send an update request for a specific client
|
||||
/// </summary>
|
||||
[Obsolete]
|
||||
public class ClientSpecificUpdateRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// Initialize an instance of the <see cref="ClientSpecificUpdateRequest"/> class.
|
||||
/// </summary>
|
||||
/// <param name="action"></param>
|
||||
public ClientSpecificUpdateRequest(Action<string> action)
|
||||
{
|
||||
ResponseMethod = action;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the ResponseMethod
|
||||
/// </summary>
|
||||
public Action<string> ResponseMethod { get; private set; }
|
||||
}
|
||||
}
|
||||
|
|
@ -143,22 +143,6 @@ namespace PepperDash.Essentials.RoomBridges
|
|||
if (Room is IHasCurrentSourceInfoChange sscRoom)
|
||||
sscRoom.CurrentSourceChange += Room_CurrentSingleSourceChange;
|
||||
|
||||
if (Room is IEssentialsHuddleVtc1Room vtcRoom)
|
||||
{
|
||||
if (vtcRoom.ScheduleSource != null)
|
||||
{
|
||||
var key = vtcRoom.Key + "-" + Key;
|
||||
|
||||
if (!AppServerController.CheckForDeviceMessenger(key))
|
||||
{
|
||||
var scheduleMessenger = new IHasScheduleAwarenessMessenger(key, vtcRoom.ScheduleSource,
|
||||
$"/room/{vtcRoom.Key}");
|
||||
AppServerController.AddDeviceMessenger(scheduleMessenger);
|
||||
}
|
||||
}
|
||||
|
||||
vtcRoom.InCallFeedback.OutputChange += InCallFeedback_OutputChange;
|
||||
}
|
||||
|
||||
if (Room is IPrivacy privacyRoom)
|
||||
{
|
||||
|
|
@ -557,11 +541,6 @@ namespace PepperDash.Essentials.RoomBridges
|
|||
IsCoolingDown = room.IsCoolingDownFeedback.BoolValue
|
||||
};
|
||||
|
||||
if (room is IEssentialsHuddleVtc1Room vtcRoom)
|
||||
{
|
||||
state.IsInCall = vtcRoom.InCallFeedback.BoolValue;
|
||||
}
|
||||
|
||||
return state;
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
|
@ -619,23 +598,6 @@ namespace PepperDash.Essentials.RoomBridges
|
|||
configuration.HelpMessage = propertiesConfig.PropertiesConfig.HelpMessageForDisplay;
|
||||
}
|
||||
|
||||
if (room is IEssentialsHuddleSpaceRoom huddleRoom && !string.IsNullOrEmpty(huddleRoom.PropertiesConfig.HelpMessageForDisplay))
|
||||
{
|
||||
this.LogVerbose("Getting huddle room config");
|
||||
configuration.HelpMessage = huddleRoom.PropertiesConfig.HelpMessageForDisplay;
|
||||
configuration.UiBehavior = huddleRoom.PropertiesConfig.UiBehavior;
|
||||
configuration.DefaultPresentationSourceKey = huddleRoom.PropertiesConfig.DefaultSourceItem;
|
||||
|
||||
}
|
||||
|
||||
if (room is IEssentialsHuddleVtc1Room vtc1Room && !string.IsNullOrEmpty(vtc1Room.PropertiesConfig.HelpMessageForDisplay))
|
||||
{
|
||||
this.LogVerbose("Getting vtc room config");
|
||||
configuration.HelpMessage = vtc1Room.PropertiesConfig.HelpMessageForDisplay;
|
||||
configuration.UiBehavior = vtc1Room.PropertiesConfig.UiBehavior;
|
||||
configuration.DefaultPresentationSourceKey = vtc1Room.PropertiesConfig.DefaultSourceItem;
|
||||
}
|
||||
|
||||
if (room is IEssentialsTechRoom techRoom && !string.IsNullOrEmpty(techRoom.PropertiesConfig.HelpMessage))
|
||||
{
|
||||
this.LogVerbose("Getting tech room config");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue