Skip to content

Commit

Permalink
Merge pull request #1240 from JustArchi/master-1
Browse files Browse the repository at this point in the history
Add BalanceDelayed and LongBalanceDelayed in wallet callback
  • Loading branch information
xPaw authored Aug 4, 2023
2 parents 402aa3f + 572cc70 commit f21f00a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions SteamKit2/SteamKit2/Steam/Handlers/SteamUser/Callbacks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -330,19 +330,30 @@ public sealed class WalletInfoCallback : CallbackMsg
/// </summary>
public int Balance { get; private set; }

/// <summary>
/// Gets the delayed (pending) balance of the wallet as a 32-bit integer, in cents.
/// </summary>
public int BalanceDelayed { get; private set; }

/// <summary>
/// Gets the balance of the wallet as a 64-bit integer, in cents.
/// </summary>
public long LongBalance { get; private set; }

/// <summary>
/// Gets the delayed (pending) balance of the wallet as a 64-bit integer, in cents.
/// </summary>
public long LongBalanceDelayed { get; private set; }

internal WalletInfoCallback( CMsgClientWalletInfoUpdate wallet )
{
HasWallet = wallet.has_wallet;

Currency = ( ECurrencyCode )wallet.currency;
Balance = wallet.balance;
BalanceDelayed = wallet.balance_delayed;
LongBalance = wallet.balance64;
LongBalanceDelayed = wallet.balance64_delayed;
}
}

Expand Down

0 comments on commit f21f00a

Please sign in to comment.