Class PlayFeedbackSignal
Requests playback of a feedback definition through the feedback service. This is just one
caller of IFeedbackService — the no-code path. Optional targeting fields let the
signal address a specific player or device; when both are null the acting pad is used.
Namespace: Serenity.Feedback.Application.Events
Assembly: Serenity.Feedback.Application.dll
Syntax
public class PlayFeedbackSignal : EventDispatcherSignal
Constructors
PlayFeedbackSignal()
Initializes a new instance of the PlayFeedbackSignal class.
Declaration
public PlayFeedbackSignal()
PlayFeedbackSignal(string, int?, string)
Initializes a new instance of the PlayFeedbackSignal class.
Declaration
public PlayFeedbackSignal(string definitionId, int? playerIndex = null, string deviceId = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | definitionId | The feedback definition id to play. |
| int? | playerIndex | Optional zero-based player index to target. |
| string | deviceId | Optional input device id to target. |
Fields
DefinitionId
Declaration
public readonly string DefinitionId
Field Value
| Type | Description |
|---|---|
| string | The feedback definition id to play. |
DeviceId
Declaration
public readonly string DeviceId
Field Value
| Type | Description |
|---|---|
| string | Optional input device id to target. |
PlayerIndex
Declaration
public readonly int? PlayerIndex
Field Value
| Type | Description |
|---|---|
| int? | Optional zero-based player index to target. |
Methods
ToString()
Returns a string representation of the event.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | Formatted string with the signal payload. |