Class LeaderboardEntrySubmittedSignal
Broadcast whenever a score is successfully submitted to a leaderboard.
Namespace: Serenity.Leaderboard.Application.Events
Assembly: Serenity.Leaderboard.Application.dll
Syntax
public class LeaderboardEntrySubmittedSignal : EventDispatcherSignal
Constructors
LeaderboardEntrySubmittedSignal()
Initializes a new instance of the LeaderboardEntrySubmittedSignal class.
Declaration
public LeaderboardEntrySubmittedSignal()
LeaderboardEntrySubmittedSignal(BoardId, PlayerId, double, int)
Initializes a new instance of the LeaderboardEntrySubmittedSignal class.
Declaration
public LeaderboardEntrySubmittedSignal(BoardId board, PlayerId player, double value, int achievedRank)
Parameters
| Type | Name | Description |
|---|---|---|
| BoardId | board | The board the entry was submitted to. |
| PlayerId | player | The player who submitted the entry. |
| double | value | The submitted metric value. |
| int | achievedRank | The player's 1-based rank after the submission, or zero when unknown. |
Fields
AchievedRank
Declaration
public readonly int AchievedRank
Field Value
| Type | Description |
|---|---|
| int | The player's 1-based rank after the submission, or zero when unknown. |
Board
Declaration
public readonly BoardId Board
Field Value
| Type | Description |
|---|---|
| BoardId | The board the entry was submitted to. |
Player
Declaration
public readonly PlayerId Player
Field Value
| Type | Description |
|---|---|
| PlayerId | The player who submitted the entry. |
Value
Declaration
public readonly double Value
Field Value
| Type | Description |
|---|---|
| double | The submitted metric value. |
Methods
ToString()
Returns a string representation of the event.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string |