Skip to content

Commit

Permalink
Merge pull request #108 from PepperDash/feature/add-levelControlListT…
Browse files Browse the repository at this point in the history
…oRoom

Feature/add level control list to room
  • Loading branch information
ndorin authored Aug 1, 2024
2 parents 10fcac2 + 43e1d5b commit 0ae279b
Show file tree
Hide file tree
Showing 16 changed files with 1,801 additions and 613 deletions.
Binary file removed .DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -363,3 +363,4 @@ MigrationBackup/
# Build Outputs
output/
/exampleConfigs/essentials-mc-test-configurationFile.json
/.DS_Store
7 changes: 4 additions & 3 deletions 3-series/Messengers/DeviceVolumeMessenger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ protected override void CustomRegisterWithAppServer(MobileControlSystemControlle

AddAction("/volumeUp", (id, content) => PressAndHoldHandler.HandlePressAndHold(DeviceKey, content, (b) =>
{
this.LogVerbose("Calling {localDevice} volume up with {value}", DeviceKey, b);
Debug.LogMessage(Serilog.Events.LogEventLevel.Verbose, "Calling {localDevice} volume up with {value}", DeviceKey, b);
try
{
_localDevice.VolumeUp(b);
Expand All @@ -89,8 +89,9 @@ protected override void CustomRegisterWithAppServer(MobileControlSystemControlle



AddAction("/volumeDown", (id, content) => PressAndHoldHandler.HandlePressAndHold(DeviceKey, content, (b) => {
this.LogVerbose("Calling {localDevice} volume down with {value}", DeviceKey, b);
AddAction("/volumeDown", (id, content) => PressAndHoldHandler.HandlePressAndHold(DeviceKey, content, (b) =>
{
Debug.LogMessage(Serilog.Events.LogEventLevel.Verbose, "Calling {localDevice} volume down with {value}", DeviceKey, b);
try
{
Expand Down
2 changes: 2 additions & 0 deletions 3-series/MobileControlConfig.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System;
using System.Collections.Generic;

namespace PepperDash.Essentials
Expand Down Expand Up @@ -27,6 +28,7 @@ public class MobileControlConfig
#endif

[JsonProperty("roomBridges")]
[Obsolete("No longer necessary")]
public List<MobileControlRoomBridgePropertiesConfig> RoomBridges { get; set; }

public MobileControlConfig()
Expand Down
10 changes: 10 additions & 0 deletions 3-series/MobileControlEssentialsConfig.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using Newtonsoft.Json;
using PepperDash.Essentials.Core.Config;
using System.Collections.Generic;


namespace PepperDash.Essentials
Expand Down Expand Up @@ -40,5 +41,14 @@ public class MobileControlRuntimeInfo
{
[JsonProperty("pluginVersion")]
public string PluginVersion { get; set; }

[JsonProperty("essentialsVersion")]
public string EssentialsVersion { get; set; }

[JsonProperty("pepperDashCoreVersion")]
public string PepperDashCoreVersion { get; set; }

[JsonProperty("essentialsPlugins")]
public List<LoadedAssembly> EssentialsPlugins { get; set; }
}
}
Loading

0 comments on commit 0ae279b

Please sign in to comment.