Releases: mpaperno/TouchPortal-CS-API
Releases · mpaperno/TouchPortal-CS-API
v1.47.1.0 - Fixed `TriggerEvent()` and Relaxed `ITouchPortalEventHandler` Implementations
Changes since v1.47.0.0
- Fixed
TriggerEventCommand
not being serialized properly forTriggerEvent()
method (since v1.47.0). (@2675613b) - Changed
TriggerEventStates
dictionary type to<string, string>
becausetriggerEvent.states
values must be of string type. (@dab4d6e0) - All
ITouchPortalEventHandler
event handler method implementations are now optional in plugin code. (@e6f2385d) - Exposed
ICommandHandler.SendCommand()
method as public inTouchPortalClient
. (@134268b5) - Actual JSON message being sent is now logged (at Debug level) instead of just success status. (@0e954f08)
Full Changelog: v1.47.0.0...v1.47.1.0
The download here contains AnyCPU
DLL builds for .NET 6, 7 and 8 with portable debug info and generated documentation XML. The package can also be used via nuget.
v1.47.0 - Updates for Touch Portal API versions 7-10.
Changes since 1.46.1
- Added
TriggerEvent(string eventId, Dictionary<string, object> states)
method &TriggerEventCommand
type. - Added
StateListUpdate(string stateId, string[] values)
method &StateListUpdateCommand
type. - Added
forceUpdate
option toCreateState()
method andCreateStateCommand.ForceUpdate
member. - Added
ListChangeEvent.Values
property forlistChangeEvent
incoming message. This is aDictionary<string, string>
type. - Added
InfoEvent.CurrentPagePathMainDevice
andInfoIevent.CurrentPagePathSecondaryDevices
properties forinfo
incoming message type. - Added
PreviousPageName
,DeviceIP
,DeviceName
, andDeviceID
toBroadcastEvent
incoming message type. - Added & improved some documentation comments.
Known issue: the message sent via TriggerEvent()
doesn't serialize properly. This is fixed in v1.47.1
v1.46.1
v1.46.0 - Optimize JSON message sending
##Changes since 1.45.0
- Optimized TP message output by skipping a byte array copy step for appending the terminating newline after each JSON struct.
- Published .NET6 and .NET7 builds.
v1.45.0 - Minor changes to long connector ID parser
v 1.45.0
Both changes affect the feature which parses the "Long" connector ID from the short ID notification events into individual key/value fields (see notes for v0.43.0-mp below).
- Connector data key names are now truncated if
TouchPortalOptions.ActionDataIdSeparator
is set, just like action/connector data keys. - Fix that the "pc_plugin-name_" part wasn't properly stripped from the "actual" connector ID.
Adds parentGroup support for dynamic states (TP API v6)
See commit notes for details.
Zip file contains Release version assembly DLL.
v0.43.0-mp
See commit notes for changes and/or compare with previous tags.