Class BalanceUpdatedEvent
Triggered when the balance of an account updates.
Implements
Namespace: OpenMod.Extensions.Economy.Abstractions
Assembly: OpenMod.Extensions.Economy.Abstractions.dll
Syntax
public class BalanceUpdatedEvent : Event, IEvent
Constructors
| Improve this Doc View SourceBalanceUpdatedEvent(String, String, Decimal, Decimal, Nullable<String>)
Declaration
public BalanceUpdatedEvent(string ownerId, string ownerType, decimal oldBalance, decimal newBalance, string? reason)
Parameters
Type | Name | Description |
---|---|---|
System.String | ownerId | |
System.String | ownerType | |
System.Decimal | oldBalance | |
System.Decimal | newBalance | |
System.Nullable<System.String> | reason |
Properties
| Improve this Doc View SourceNewBalance
Gets the new balance.
Declaration
public decimal NewBalance { get; }
Property Value
Type | Description |
---|---|
System.Decimal |
OldBalance
Gets the old balance.
Declaration
public decimal OldBalance { get; }
Property Value
Type | Description |
---|---|
System.Decimal |
OwnerId
Gets the ID of the account owner.
Declaration
public string OwnerId { get; }
Property Value
Type | Description |
---|---|
System.String |
OwnerType
Gets the actor type of the account owner.
Declaration
public string OwnerType { get; }
Property Value
Type | Description |
---|---|
System.String |
Reason
Gets the reason for the balance update.
Declaration
public string? Reason { get; }
Property Value
Type | Description |
---|---|
System.Nullable<System.String> |