Skip to content

Commit

Permalink
fix: interfaces for ui and mc
Browse files Browse the repository at this point in the history
  • Loading branch information
jgutenplan committed May 7, 2024
1 parent 04c0e78 commit 4e15dcb
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@

namespace epi_videoCodec_ciscoExtended.UserInterface.CiscoCodecUserInterface
{
public class CiscoCodecUserInterface : ReconfigurableDevice, ICiscoCodecUserInterface, IReconfigurableDevice
{
public class CiscoCodecUserInterface : ReconfigurableDevice, ICiscoCodecUserInterface, IReconfigurableDevice, IVideoCodecUiExtensions
{
public CiscoCodec UisCiscoCodec { get; private set; }
public CiscoCodecUserInterfaceConfig ConfigProps { get; }
public IVideoCodecUiExtensionsHandler VideoCodecUiExtensionsHandler { get; private set; }
public IVideoCodecUiExtensionsHandler VideoCodecUiExtensionsHandler { get; set; }

public ICiscoCodecUiExtensions UiExtensions { get; private set; }

Expand All @@ -30,10 +30,10 @@ public T ParseConfigProps<T>(DeviceConfig config)
public CiscoCodecUserInterface(DeviceConfig config) : base(config)
{
ConfigProps = ParseConfigProps<CiscoCodecUserInterfaceConfig>(config);

AddPreActivationAction(PreActivateAction);
}

public override bool CustomActivate()
public void PreActivateAction()
{
Debug.LogMessage(LogEventLevel.Debug, "[DEBUG] Activating Video Codec UI Extensions", this);
UisCiscoCodec = DeviceManager.GetDeviceForKey(ConfigProps.VideoCodecKey) as CiscoCodec;
Expand All @@ -42,7 +42,8 @@ public override bool CustomActivate()
{
var msg = $"Video codec UserInterface could not find codec with key '{ConfigProps.VideoCodecKey}'.";
Debug.LogMessage(new NullReferenceException(msg), msg, this);
return base.CustomActivate();
//return base.CustomActivate();
return;
}

UiExtensions = ConfigProps.Extensions;
Expand All @@ -61,7 +62,8 @@ public override bool CustomActivate()
UiExtensions.Initialize(this, UisCiscoCodec.EnqueueCommand);
Debug.LogMessage(LogEventLevel.Debug, "[DEBUG] Video Codec UI Extensions Handler Initilizing", this);
};
return base.CustomActivate();
//return base.CustomActivate();
return;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@
namespace epi_videoCodec_ciscoExtended.UserInterface.CiscoCodecUserInterface
{
public interface ICiscoCodecUserInterface : IKeyed
{
{
CiscoCodec UisCiscoCodec { get; }
CiscoCodecUserInterfaceConfig ConfigProps { get; }
IVideoCodecUiExtensionsHandler VideoCodecUiExtensionsHandler { get; }
ICiscoCodecUiExtensions UiExtensions { get; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using PepperDash.Essentials.Core;
using PepperDash.Essentials.Core.Config;
using PepperDash.Essentials.Core.DeviceTypeInterfaces;
using PepperDash.Essentials.Devices.Common.VideoCodec.Interfaces;
using System;
using System.Linq;
using Feedback = PepperDash.Essentials.Core.Feedback;
Expand Down
2 changes: 1 addition & 1 deletion src/epi-videoCodec-ciscoExtended.4Series.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="PepperDashEssentials" Version="2.0.0-alpha-2469" />
<PackageReference Include="PepperDashEssentials" Version="2.0.0-alpha-2475" />
<PackageReference Include="WebSocketSharp-netstandard" Version="1.0.1" />
</ItemGroup>

Expand Down

0 comments on commit 4e15dcb

Please sign in to comment.