OpenMod Docs OpenMod Docs
OpenMod Docs OpenMod Docs
OpenMod .NET Plugin Framework.

Class BalanceUpdatedEvent

Triggered when the balance of an account updates.

Inheritance
System.Object
EventBase
Event
BalanceUpdatedEvent
Implements
IEvent
Inherited Members
Event.Arguments
EventBase.Name
EventBase.Data
Namespace: OpenMod.Extensions.Economy.Abstractions
Assembly: OpenMod.Extensions.Economy.Abstractions.dll
Syntax
public class BalanceUpdatedEvent : Event, IEvent

Constructors

| Improve this Doc View Source

BalanceUpdatedEvent(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 Source

NewBalance

Gets the new balance.

Declaration
public decimal NewBalance { get; }
Property Value
Type Description
System.Decimal
| Improve this Doc View Source

OldBalance

Gets the old balance.

Declaration
public decimal OldBalance { get; }
Property Value
Type Description
System.Decimal
| Improve this Doc View Source

OwnerId

Gets the ID of the account owner.

Declaration
public string OwnerId { get; }
Property Value
Type Description
System.String
| Improve this Doc View Source

OwnerType

Gets the actor type of the account owner.

Declaration
public string OwnerType { get; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Reason

Gets the reason for the balance update.

Declaration
public string? Reason { get; }
Property Value
Type Description
System.Nullable<System.String>

Implements

IEvent

Extension Methods

DisposeHelper.DisposeSyncOrAsync(Object)