WMTOperations class
Operations networking layer for Wultra Mobile Token API.
Constructors
- WMTOperations(PowerAuth powerAuth, String baseUrl, {WMTConfiguration? configuration})
- Constructor that initializes the operations networking layer.
Properties
- acceptLanguage ↔ String
-
getter/setter pairinherited
- configuration → WMTConfiguration
-
Immutable initial configuration shared with the owning Mobile Token.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isLoadingOperations → bool
-
Whether an operation list request is running.
no setter
- isPollingOperations → bool
-
Whether periodic operation polling is running.
no setter
- lastFetchResult → WMTGetOperationsResult?
-
Last operation list result. The value is not persisted.
no setter
- listener ↔ WMTOperationsListener?
-
Listener for operation list loading and changes.
getter/setter pair
- powerAuth → PowerAuth
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- userAgent ↔ WMTUserAgent
-
getter/setter pairinherited
Methods
- Authorize operation with given PowerAuth authentication object.
- Sign offline QR operation with provided authentication.
-
claim(
String operationId) → Future< WMTUserOperation> - Assigns the 'non-personalized' operation to the user.
-
getDetail(
String operationId) → Future< WMTUserOperation> - Retrieves operation detail based on operation ID.
-
getHistory(
PowerAuthAuthentication authentication) → Future< List< WMTUserOperation> > - Retrieves the history of user operations with their current status.
-
getOperations(
) → Future< List< WMTUserOperation> > - Retrieves user operations that are pending for approval or rejection.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
refreshOperations(
) → void - Refreshes operations unless a list request is already running.
-
reject(
String operationId, WMTRejectionReason reason) → Future< void> - Reject operation by ID with a reason.
-
rejectOperation(
WMTOnlineOperation operation, WMTRejectionReason reason) → Future< void> - Reject operation with a reason.
-
startPollingOperations(
{Duration interval = const Duration(seconds: 7), bool delayStart = false}) → void - Starts periodic operation polling.
-
stopPollingOperations(
) → void - Stops periodic operation polling.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited