UNPKG

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

Version:

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

47 lines (42 loc) 1.15 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PinValidationMessage = void 0; var _ChannelMessage = require("../ChannelMessage"); /** * Copyright © 2023-2024 Nevis Security AG. All rights reserved. */ /** * Holds the parameters of the validate PIN call. */ class PinValidationMessage extends _ChannelMessage.ChannelMessage { /** * The identifier of the operation. */ /** * The PIN to be validated. */ /** * Default constructor for {@link PinValidationMessage}. * * @param operationId the identifier of the operation. * @param pin the PIN to be validated. */ constructor(operationId, pin) { super(); this.operationId = operationId; this.pin = pin; } /** * Alternate constructor that creates an {@link PinValidationMessage} from a json. * * @param json contains the source for instance creation. * @returns the created instance. */ static fromJson(json) { return new PinValidationMessage(json.operationId, json.pin.join('')); } } exports.PinValidationMessage = PinValidationMessage; //# sourceMappingURL=PinValidationMessage.js.map