UNPKG

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

Version:

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

42 lines (36 loc) 1.29 kB
/** * Copyright © 2024 Nevis Security AG. All rights reserved. */ import { HttpOperationMessage } from './HttpOperationMessage'; import { RequestHeaders } from '../../../operations/RequestHeaders'; /** * Holds the parameters of the pending out-of-band operations platform channel call. */ export class PendingOutOfBandOperationsMessage extends HttpOperationMessage { /** * The identifier of the operation. */ operationId: string; /** * Specifies the additional request headers that must be included in the HTTP requests sent by * the operation. */ requestHeaders?: RequestHeaders; /** * Flag that tells whether the result callback is provided. */ onResultProvided: boolean; /** * Default constructor for {@link PendingOutOfBandOperationsMessage}. * * @param operationId the identifier of the operation. * @param requestHeaders the additional request headers that must be included in the HTTP requests sent by the operation. * @param onResultProvided the flag that tells whether the result callback is provided. */ constructor(operationId: string, onResultProvided: boolean, requestHeaders?: RequestHeaders) { super(); this.operationId = operationId; this.onResultProvided = onResultProvided; this.requestHeaders = requestHeaders; } }