Class AchievementProgressChangedSignal
Broadcast whenever the tracked progress of a progressive achievement changes.
Namespace: Serenity.Achievements.Application.Events
Assembly: Serenity.Achievements.Application.dll
Syntax
public class AchievementProgressChangedSignal : EventDispatcherSignal
Constructors
AchievementProgressChangedSignal()
Initializes a new instance of the AchievementProgressChangedSignal class.
Declaration
public AchievementProgressChangedSignal()
AchievementProgressChangedSignal(AchievementId, long, long)
Initializes a new instance of the AchievementProgressChangedSignal class.
Declaration
public AchievementProgressChangedSignal(AchievementId achievement, long current, long target)
Parameters
| Type | Name | Description |
|---|---|---|
| AchievementId | achievement | The achievement whose progress changed. |
| long | current | The new progress numerator. |
| long | target | The numerator that unlocks the achievement. |
Fields
Achievement
Declaration
public readonly AchievementId Achievement
Field Value
| Type | Description |
|---|---|
| AchievementId | The achievement whose progress changed. |
Current
Declaration
public readonly long Current
Field Value
| Type | Description |
|---|---|
| long | The new progress numerator. |
Target
Declaration
public readonly long Target
Field Value
| Type | Description |
|---|---|
| long | The numerator that unlocks the achievement. |
Methods
ToString()
Returns a string representation of the event.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string |