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
| Name | Type | Description |
|---|---|---|
kind | ProjectVTransactionKind | The kind of action. |
title | string | The dialog title; not empty. |
itemOrRewardSummary | string | What the player gets, as text; not empty. |
priceSummary | string | What the player pays, as text; not empty. |
balances | IReadOnlyList<ProjectVBalancePreview>? | The resources spent, or null when nothing is spent. The list is copied. |
dataLossScope | string | What the player loses for good, such as for account deletion; empty when nothing. |
expiresAtUnixSeconds | long? | When the offer ends, in Unix seconds, or null when it does not end. |
Exceptions
| Exception | When |
|---|---|
ArgumentException | title, itemOrRewardSummary or priceSummary is null, empty or whitespace. |
ArgumentOutOfRangeException | expiresAtUnixSeconds is zero or negative. |
Properties​
| Property | Type | Description |
|---|---|---|
Kind | ProjectVTransactionKind | The kind of action. |
Title | string | The dialog title. |
ItemOrRewardSummary | string | What the player gets, as text. |
PriceSummary | string | What the player pays, as text. |
Balances | IReadOnlyList<ProjectVBalancePreview> | The resources spent, one line each; empty when nothing is spent. |
DataLossScope | string | What the player loses for good; empty when nothing. |
ExpiresAtUnixSeconds | long? | When the offer ends, in Unix seconds, or null when it does not end. |
IsAffordable | bool | True when the player can afford every line in Balances. |