@nevis-security/nevis-mobile-authentication-sdk-react
Version:
React Native plugin for Nevis Mobile Authentication SDK. Supports only mobile.
44 lines (38 loc) • 1.28 kB
JavaScript
/**
* Copyright © 2024 Nevis Security AG. All rights reserved.
*/
import { DeviceInformationCheckResult } from '../../../operations/deviceInformation/DeviceInformationCheckResult';
import { ChannelMessage } from '../ChannelMessage';
/**
* Holds the parameters of the device information check result call.
*/
export class DeviceInformationCheckResultMessage extends ChannelMessage {
/**
* The identifier of the operation.
*/
/**
* The result of the device information check call.
*/
/**
* Default constructor for {@link DeviceInformationCheckResultMessage}.
*
* @param operationId the identifier of the operation.
* @param result the result of the device information check call.
*/
constructor(operationId, result) {
super();
this.operationId = operationId;
this.result = result;
}
/**
* Alternate constructor that creates an {@link DeviceInformationCheckResultMessage} from a json.
*
* @param json contains the source for instance creation.
* @returns the created instance.
*/
static fromJson(json) {
return new DeviceInformationCheckResultMessage(json.operationId, DeviceInformationCheckResult.fromJson(json.result));
}
}
//# sourceMappingURL=DeviceInformationCheckResultMessage.js.map
;