@nevis-security/nevis-mobile-authentication-sdk-react
Version:
React Native plugin for Nevis Mobile Authentication SDK. Supports only mobile.
43 lines (37 loc) • 988 B
JavaScript
/**
* Copyright © 2023-2024 Nevis Security AG. All rights reserved.
*/
import { ChannelMessage } from '../ChannelMessage';
/**
* Holds the parameters of the validate PIN call.
*/
export class PinValidationMessage extends 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(''));
}
}
//# sourceMappingURL=PinValidationMessage.js.map
;