Skip to content

Commit

Permalink
feat: adds event prefix for event messages and adds
Browse files Browse the repository at this point in the history
  • Loading branch information
ndorin committed Apr 25, 2024
1 parent 8d14540 commit a56f4ce
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion 3-series/Messengers/MessengerBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ protected void PostEventMessage(DeviceEventMessageBase message)

AppServerController?.SendMessageObject(new MobileControlMessage
{
Type = MessagePath,
Type = $"/event{MessagePath}",
Content = JToken.FromObject(message),
});
}
Expand Down
7 changes: 5 additions & 2 deletions 3-series/MobileControlSystemController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,6 @@ private void SetupDefaultRoomMessengers()

AddDefaultDeviceMessenger(techPasswordMessenger);
}


}
}

Expand Down Expand Up @@ -992,6 +990,11 @@ public MobileControlBridgeBase GetRoomBridge(string key)
return _roomBridges.FirstOrDefault((r) => r.RoomKey.Equals(key));
}

public IMobileControlRoomMessenger GetRoomMessenger(string key)
{
return _roomBridges.FirstOrDefault((r) => r.RoomKey.Equals(key));
}

/// <summary>
///
/// </summary>
Expand Down

0 comments on commit a56f4ce

Please sign in to comment.