Skip to main content

ProjectVTransactionResult class

The final result of a confirmed action, with text for the player and the next buttons to offer.

Namespace: SilverTiger.ProjectV.Unity.Presentation.Recovery

public sealed class ProjectVTransactionResult

Constructors​

ProjectVTransactionResult(ProjectVTransactionStatus status, string message, bool canRetry, bool canSync)​

Creates a final result.

public ProjectVTransactionResult(ProjectVTransactionStatus status, string message, bool canRetry = false, bool canSync = false);

Parameters

NameTypeDescription
statusProjectVTransactionStatusProjectVTransactionStatus.Succeeded, ProjectVTransactionStatus.Rejected, ProjectVTransactionStatus.Cancelled or ProjectVTransactionStatus.UnknownOutcome.
messagestringText to show the player; not empty.
canRetryboolTrue to let the player confirm the same action again.
canSyncboolTrue to offer a Sync button.

Exceptions

ExceptionWhen
ArgumentOutOfRangeExceptionstatus is not a final status.
ArgumentExceptionmessage is null, empty or whitespace.

Properties​

PropertyTypeDescription
StatusProjectVTransactionStatusThe final status.
MessagestringText to show the player; never empty.
CanRetryboolTrue when the player may confirm the same action again.
CanSyncboolTrue when a Sync button should be offered.