You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Map the event name enums to the corresponding types. (Benchamrked against using an Attribute on the enums and a dict lookup is several magnitudes faster.)
39
+
// Map the event name enums to the corresponding types. (Benchmarked against using an Attribute on the enums and a dict lookup is several magnitudes faster.)
@@ -87,15 +92,34 @@ public interface ICommandHandler
87
92
/// <param name="connectorId">The long ID of the connector to update. The string "pc_{pluginId}_" is automatically prepended
88
93
/// before sending to TP. The total length must not exceed 200 chars.</param>
89
94
/// <param name="value">The value to send, must be between 0 and 100, inclusive.</param>
90
-
/// <returns>true on success, false otherwise.</returns>
95
+
/// <returns>true on successful sending of the message, false otherwise.</returns>
91
96
boolConnectorUpdate(stringconnectorId,intvalue);
92
97
93
98
/// <summary>
94
99
/// Sends a connector value update to Touch Portal using the short form of the connector ID.
95
100
/// </summary>
96
101
/// <param name="shortId">The short ID of the connector to update. This is obtained from a <see cref="ShortConnectorIdNotification"/> event.</param>
97
102
/// <param name="value">The value to send, must be between 0 and 100, inclusive.</param>
98
-
/// <returns>true on success, false otherwise.</returns>
103
+
/// <returns>true on successful sending of the message, false otherwise.</returns>
99
104
boolConnectorUpdateShort(stringshortId,intvalue);
105
+
106
+
/// <summary>
107
+
/// Trigger predefined Events by sending a message to Touch Portal with the given eventId and additional data.
108
+
/// Since TP API v7.
109
+
/// </summary>
110
+
/// <param name="eventId">The event id to trigger. This event must be defined in the plugin's entry.tp declaration.</param>
111
+
/// <param name="states">This gets serialized to a JSON Object that holds key value pairs of data that are used within Touch Portal as Local States.</param>
112
+
/// <returns>true on successful sending of the message, false otherwise.</returns>
0 commit comments