UNPKG

@nevis-security/nevis-mobile-authentication-sdk-react

Version:

React Native plugin for Nevis Mobile Authentication SDK. Supports only mobile.

48 lines (43 loc) 1.58 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PendingOutOfBandOperationsResultMessage = void 0; var _PendingOutOfBandOperationsResult = require("../../../operations/outOfBand/PendingOutOfBandOperationsResult"); var _ChannelMessage = require("../ChannelMessage"); /** * Copyright © 2024 Nevis Security AG. All rights reserved. */ /** * Holds the parameters of the pending out-of-band operations result call. */ class PendingOutOfBandOperationsResultMessage extends _ChannelMessage.ChannelMessage { /** * The identifier of the operation. */ /** * The result of the pending out-of-band operations call. */ /** * Default constructor for {@link PendingOutOfBandOperationsResultMessage}. * * @param operationId the identifier of the operation. * @param result the result of the pending out-of-band operations call. */ constructor(operationId, result) { super(); this.operationId = operationId; this.result = result; } /** * Alternate constructor that creates an {@link PendingOutOfBandOperationsResultMessage} from a json. * * @param json contains the source for instance creation. * @returns the created instance. */ static fromJson(json) { return new PendingOutOfBandOperationsResultMessage(json.operationId, _PendingOutOfBandOperationsResult.PendingOutOfBandOperationsResult.fromJson(json.result)); } } exports.PendingOutOfBandOperationsResultMessage = PendingOutOfBandOperationsResultMessage; //# sourceMappingURL=PendingOutOfBandOperationsResultMessage.js.map