Class UnityFeedbackDefinitionProvider
Unity implementation of IFeedbackDefinitionProvider. Resolves FeedbackDefinition ScriptableObjects by Id or Guid via UnityAssetUtils (Addressables / Resources), then maps them to DTOs.
Implements
Inherited Members
Namespace: Serenity.Feedback.Infrastructure.Services
Assembly: Serenity.UnityFeedback.Infrastructure.dll
Syntax
public class UnityFeedbackDefinitionProvider : IFeedbackDefinitionProvider
Constructors
UnityFeedbackDefinitionProvider()
Declaration
public UnityFeedbackDefinitionProvider()
Methods
TryGet(string, out FeedbackDefinitionData)
Attempts to find a FeedbackDefinition asset whose Id matches the given id string, then converts it to a FeedbackDefinitionData DTO.
Declaration
public bool TryGet(string id, out FeedbackDefinitionData definition)
Parameters
| Type | Name | Description |
|---|---|---|
| string | id | The definition Id string to look up. |
| FeedbackDefinitionData | definition | The resolved DTO when found; default when not found. |
Returns
| Type | Description |
|---|---|
| bool | True when the definition was located and mapped successfully. |