/// <summary> /// Public constructor, a StreamDeckConnection object is required along with the current action and context IDs /// These will be used to correctly communicate with the StreamDeck App /// </summary> /// <param name="connection"></param> /// <param name="pluginUUID"></param> /// <param name="actionId"></param> /// <param name="contextId"></param> public SDConnection(streamdeck_client_csharp.StreamDeckConnection connection, string pluginUUID, string actionId, string contextId) { StreamDeckConnection = connection; this.actionId = actionId; this.ContextId = contextId; this.pluginUUID = pluginUUID; }
/// <summary> /// Public constructor, a StreamDeckConnection object is required along with the current action and context IDs /// These will be used to correctly communicate with the StreamDeck App /// </summary> /// <param name="connection"></param> /// <param name="pluginUUID"></param> /// <param name="actionId"></param> /// <param name="contextId"></param> /// /// <param name="deviceId"></param> public SDConnection(streamdeck_client_csharp.StreamDeckConnection connection, string pluginUUID, StreamDeckInfo deviceInfo, string actionId, string contextId, string deviceId) { StreamDeckConnection = connection; this.pluginUUID = pluginUUID; this.deviceInfo = deviceInfo; this.actionId = actionId; this.ContextId = contextId; this.DeviceId = deviceId; }
/// <summary> /// Public constructor, a StreamDeckConnection object is required along with the current action and context IDs /// These will be used to correctly communicate with the StreamDeck App /// </summary> /// <param name="connection"></param> /// <param name="pluginUUID"></param> /// <param name="deviceInfo"></param> /// <param name="actionId"></param> /// <param name="contextId"></param> /// /// <param name="deviceId"></param> public SDConnection(streamdeck_client_csharp.StreamDeckConnection connection, string pluginUUID, StreamDeckInfo deviceInfo, string actionId, string contextId, string deviceId) { StreamDeckConnection = connection; this.pluginUUID = pluginUUID; this.deviceInfo = deviceInfo; this.actionId = actionId; this.ContextId = contextId; this.DeviceId = deviceId; StreamDeckConnection.OnSendToPlugin += Connection_OnSendToPlugin; StreamDeckConnection.OnTitleParametersDidChange += Connection_OnTitleParametersDidChange; StreamDeckConnection.OnApplicationDidTerminate += Connection_OnApplicationDidTerminate; StreamDeckConnection.OnApplicationDidLaunch += Connection_OnApplicationDidLaunch; StreamDeckConnection.OnDeviceDidDisconnect += Connection_OnDeviceDidDisconnect; StreamDeckConnection.OnDeviceDidConnect += Connection_OnDeviceDidConnect; StreamDeckConnection.OnPropertyInspectorDidAppear += Connection_OnPropertyInspectorDidAppear; StreamDeckConnection.OnPropertyInspectorDidDisappear += Connection_OnPropertyInspectorDidDisappear; }