Skip to content

Commit

Permalink
Merge branch 'main' into hotfix/SIMPL-bridge-updates
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-welker committed Sep 23, 2022
2 parents cc9675d + 568b05d commit c5bd2b5
Show file tree
Hide file tree
Showing 6 changed files with 61 additions and 54 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ env:
# Do not edit this, we're just creating it here
VERSION: 0.0.0-buildtype-buildnumber
# Defaults to debug for build type
BUILD_TYPE: Debug
BUILD_TYPE: Release
# Defaults to master as the release branch. Change as necessary
RELEASE_BRANCH: main
jobs:
Expand Down Expand Up @@ -118,7 +118,7 @@ jobs:
with:
tag_name: ${{ env.VERSION }}
release_name: ${{ env.VERSION }}
prerelease: ${{contains('debug', env.BUILD_TYPE)}}
prerelease: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Upload the build package to the release
Expand Down Expand Up @@ -202,7 +202,7 @@ jobs:
- name: Build Solution
shell: powershell
run: |
msbuild ./4-series/$($Env:SOLUTION_FILE).sln /p:platform="Any CPU" /p:configuration="Debug"
msbuild ./4-series/$($Env:SOLUTION_FILE).sln /p:platform="Any CPU" /p:configuration="Release"
# Zip up the output files as needed
- name: Zip Build Output
shell: powershell
Expand Down Expand Up @@ -265,7 +265,7 @@ jobs:
with:
tag_name: ${{ env.VERSION }}-4-Series
release_name: ${{ env.VERSION }}-4-Series
prerelease: ${{contains('debug', env.BUILD_TYPE)}}
prerelease: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Upload the build package to the release
Expand Down
4 changes: 2 additions & 2 deletions 3-series/MobileControlFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class MobileControlFactory : EssentialsPluginDeviceFactory<MobileControlS
{
public MobileControlFactory()
{
MinimumEssentialsFrameworkVersion = "1.10.1";
MinimumEssentialsFrameworkVersion = "1.10.8";
TypeNames = new List<string> {"appserver", "mobilecontrol", "webserver" };
}

Expand All @@ -37,7 +37,7 @@ public class MobileControlSimplFactory : EssentialsPluginDeviceFactory<MobileCon
{
public MobileControlSimplFactory()
{
MinimumEssentialsFrameworkVersion = "1.10.1";
MinimumEssentialsFrameworkVersion = "1.10.8";
TypeNames = new List<string> {"mobilecontrolbridge-ddvc01", "mobilecontrolbridge-simpl"};
}

Expand Down
9 changes: 8 additions & 1 deletion 3-series/RoomBridges/MobileControlEssentialsRoomBridge.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
using PepperDash.Essentials.Core.Config;
using PepperDash.Essentials.Core.DeviceTypeInterfaces;
using PepperDash.Essentials.Room.MobileControl;
using PepperDash.Essentials.Room.Config;
using PepperDash.Essentials.Devices.Common.VideoCodec;
using PepperDash.Essentials.Devices.Common.AudioCodec;
using PepperDash.Essentials.Devices.Common.Cameras;
Expand Down Expand Up @@ -779,16 +780,20 @@ private RoomConfiguration GetRoomConfiguration(IEssentialsRoom room)
{
var configuration = new RoomConfiguration();


var huddleRoom = room as IEssentialsHuddleSpaceRoom;
if (huddleRoom != null && !string.IsNullOrEmpty(huddleRoom.PropertiesConfig.HelpMessageForDisplay))
{
configuration.HelpMessage = huddleRoom.PropertiesConfig.HelpMessageForDisplay;
configuration.UiBehavior = huddleRoom.PropertiesConfig.UiBehavior;

}

var vtc1Room = room as IEssentialsHuddleVtc1Room;
if (vtc1Room != null && !string.IsNullOrEmpty(vtc1Room.PropertiesConfig.HelpMessageForDisplay))
{
configuration.HelpMessage = vtc1Room.PropertiesConfig.HelpMessageForDisplay;
configuration.UiBehavior = vtc1Room.PropertiesConfig.UiBehavior;
}

var techRoom = room as EssentialsTechRoom;
Expand Down Expand Up @@ -972,8 +977,10 @@ public class RoomConfiguration
[JsonProperty("helpMessage", NullValueHandling = NullValueHandling.Ignore)]
public string HelpMessage { get; set; }

[JsonProperty("uiBehavior", NullValueHandling = NullValueHandling.Ignore)]
public EssentialsRoomUiBehaviorConfig UiBehavior { get; set; }

public RoomConfiguration()
public RoomConfiguration()
{
DisplayKeys = new List<string>();
EnvironmentalDevices = new List<EnvironmentalDeviceConfiguration>();
Expand Down
Loading

0 comments on commit c5bd2b5

Please sign in to comment.