Class OnGameSettingsValueUpdatedInput
Data transfer object for the OnGameSettingsValueUpdated event.
Inherited Members
Namespace: Serenity.GameSettings.Application.DTO
Assembly: Serenity.Global.Application.dll
Syntax
public class OnGameSettingsValueUpdatedInput
Constructors
OnGameSettingsValueUpdatedInput(Dictionary<string, GameSettingsEntity>, string)
Initializes a new instance of the OnGameSettingsValueUpdatedInput class.
Declaration
public OnGameSettingsValueUpdatedInput(Dictionary<string, GameSettingsEntity> gameSettingsDictionary, string changedSettingId = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Dictionary<string, GameSettingsEntity> | gameSettingsDictionary | The dictionary of game settings. |
| string | changedSettingId | The ID of the specific setting that changed, or null if multiple settings changed. |
Fields
ChangedSettingId
Declaration
public readonly string ChangedSettingId
Field Value
| Type | Description |
|---|---|
| string | The ID of the specific setting that was changed. |
GameSettingsDictionary
Declaration
public readonly Dictionary<string, GameSettingsEntity> GameSettingsDictionary
Field Value
| Type | Description |
|---|---|
| Dictionary<string, GameSettingsEntity> | The dictionary of game settings. |
Properties
IsSingleSettingChange
Checks if the event is for a specific single setting change.
Returns true if only one setting was changed, false if multiple settings changed (bulk update).
Declaration
public bool IsSingleSettingChange { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
GetChangedSetting()
Gets the changed setting entity, if this is a single setting change.
Returns null if this is a bulk update or if the setting ID is not found.
Declaration
public GameSettingsEntity GetChangedSetting()
Returns
| Type | Description |
|---|---|
| GameSettingsEntity |
ToString()
Returns a string representation of the game settings.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string |