UNPKG

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

Version:

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

50 lines (45 loc) 1.43 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PasswordEnrollerMessage = void 0; var _PasswordEnrollmentContext = require("../../../operations/password/PasswordEnrollmentContext"); var _ChannelMessage = require("../ChannelMessage"); /** * Copyright © 2024 Nevis Security AG. All rights reserved. */ /** * Holds the parameters of the enroll password call. */ class PasswordEnrollerMessage extends _ChannelMessage.ChannelMessage { /** * The identifier of the operation. */ /** * The password enrollment context. */ /** * Default constructor for {@link PasswordEnrollerMessage}. * * @param operationId the identifier of the operation. * @param context the password enrollment context. */ constructor(operationId, context) { super(); this.operationId = operationId; this.context = context; } /** * Alternate constructor that creates an {@link PasswordEnrollerMessage} from a json. * * @param json contains the source for instance creation. * @returns the created instance. */ static fromJson(json) { const operationId = json.operationId; const context = _PasswordEnrollmentContext.PasswordEnrollmentContext.fromJson(json.context); return new PasswordEnrollerMessage(operationId, context); } } exports.PasswordEnrollerMessage = PasswordEnrollerMessage; //# sourceMappingURL=PasswordEnrollerMessage.js.map