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
| Name | Type | Description |
|---|---|---|
status | ProjectVTransactionStatus | ProjectVTransactionStatus.Succeeded, ProjectVTransactionStatus.Rejected, ProjectVTransactionStatus.Cancelled or ProjectVTransactionStatus.UnknownOutcome. |
message | string | Text to show the player; not empty. |
canRetry | bool | True to let the player confirm the same action again. |
canSync | bool | True to offer a Sync button. |
Exceptions
| Exception | When |
|---|---|
ArgumentOutOfRangeException | status is not a final status. |
ArgumentException | message is null, empty or whitespace. |
Properties​
| Property | Type | Description |
|---|---|---|
Status | ProjectVTransactionStatus | The final status. |
Message | string | Text to show the player; never empty. |
CanRetry | bool | True when the player may confirm the same action again. |
CanSync | bool | True when a Sync button should be offered. |