Class UnlockAchievementSignal
Dispatched to unlock an achievement through UnlockAchievementAction, so a designer can wire "award this" from a no-code signal trigger instead of a call to IAchievementService.
Namespace: Serenity.Achievements.Application.Events
Assembly: Serenity.Achievements.Application.dll
Syntax
public class UnlockAchievementSignal : EventDispatcherSignal
Constructors
UnlockAchievementSignal()
Initializes a new instance of the UnlockAchievementSignal class.
Declaration
public UnlockAchievementSignal()
UnlockAchievementSignal(string)
Initializes a new instance of the UnlockAchievementSignal class.
Declaration
public UnlockAchievementSignal(string achievementId)
Parameters
| Type | Name | Description |
|---|---|---|
| string | achievementId | The id of the achievement to unlock. |
Fields
AchievementId
Declaration
public readonly string AchievementId
Field Value
| Type | Description |
|---|---|
| string | The id of the achievement to unlock. Must already be registered. |
Methods
ToString()
Returns a string representation of the event.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string |