Chuyển tới nội dung chính

ProjectVTransactionConfirmation class

The content of a confirmation dialog: what the player gets, what it costs, and what they lose.

Namespace: SilverTiger.ProjectV.Unity.Presentation.Recovery

public sealed class ProjectVTransactionConfirmation

Constructors​

ProjectVTransactionConfirmation(ProjectVTransactionKind kind, string title, string itemOrRewardSummary, string priceSummary, IReadOnlyList<ProjectVBalancePreview>? balances, string dataLossScope, long? expiresAtUnixSeconds)​

Creates the content of a confirmation dialog.

public ProjectVTransactionConfirmation(ProjectVTransactionKind kind, string title, string itemOrRewardSummary, string priceSummary, IReadOnlyList<ProjectVBalancePreview>? balances = null, string dataLossScope = "", long? expiresAtUnixSeconds = null);

Parameters

NameTypeDescription
kindProjectVTransactionKindThe kind of action.
titlestringThe dialog title; not empty.
itemOrRewardSummarystringWhat the player gets, as text; not empty.
priceSummarystringWhat the player pays, as text; not empty.
balancesIReadOnlyList<ProjectVBalancePreview>?The resources spent, or null when nothing is spent. The list is copied.
dataLossScopestringWhat the player loses for good, such as for account deletion; empty when nothing.
expiresAtUnixSecondslong?When the offer ends, in Unix seconds, or null when it does not end.

Exceptions

ExceptionWhen
ArgumentExceptiontitle, itemOrRewardSummary or priceSummary is null, empty or whitespace.
ArgumentOutOfRangeExceptionexpiresAtUnixSeconds is zero or negative.

Properties​

PropertyTypeDescription
KindProjectVTransactionKindThe kind of action.
TitlestringThe dialog title.
ItemOrRewardSummarystringWhat the player gets, as text.
PriceSummarystringWhat the player pays, as text.
BalancesIReadOnlyList<ProjectVBalancePreview>The resources spent, one line each; empty when nothing is spent.
DataLossScopestringWhat the player loses for good; empty when nothing.
ExpiresAtUnixSecondslong?When the offer ends, in Unix seconds, or null when it does not end.
IsAffordableboolTrue when the player can afford every line in Balances.