UNPKG

@regulaforensics/document-reader

Version:

This is an npm module for Regula Document Reader SDK. It allows you to read various kinds of identification documents using your phone's camera.

75 lines (62 loc) 3.54 kB
import { DocumentReader } from '../../index'; export class CustomizationColors { get rfidProcessingScreenBackground() { return this._rfidProcessingScreenBackground; } set rfidProcessingScreenBackground(val) { this._rfidProcessingScreenBackground = val; this._set({ "rfidProcessingScreenBackground": val }); } get rfidProcessingScreenHintLabelText() { return this._rfidProcessingScreenHintLabelText; } set rfidProcessingScreenHintLabelText(val) { this._rfidProcessingScreenHintLabelText = val; this._set({ "rfidProcessingScreenHintLabelText": val }); } get rfidProcessingScreenHintLabelBackground() { return this._rfidProcessingScreenHintLabelBackground; } set rfidProcessingScreenHintLabelBackground(val) { this._rfidProcessingScreenHintLabelBackground = val; this._set({ "rfidProcessingScreenHintLabelBackground": val }); } get rfidProcessingScreenProgressLabelText() { return this._rfidProcessingScreenProgressLabelText; } set rfidProcessingScreenProgressLabelText(val) { this._rfidProcessingScreenProgressLabelText = val; this._set({ "rfidProcessingScreenProgressLabelText": val }); } get rfidProcessingScreenProgressBar() { return this._rfidProcessingScreenProgressBar; } set rfidProcessingScreenProgressBar(val) { this._rfidProcessingScreenProgressBar = val; this._set({ "rfidProcessingScreenProgressBar": val }); } get rfidProcessingScreenProgressBarBackground() { return this._rfidProcessingScreenProgressBarBackground; } set rfidProcessingScreenProgressBarBackground(val) { this._rfidProcessingScreenProgressBarBackground = val; this._set({ "rfidProcessingScreenProgressBarBackground": val }); } get rfidProcessingScreenResultLabelText() { return this._rfidProcessingScreenResultLabelText; } set rfidProcessingScreenResultLabelText(val) { this._rfidProcessingScreenResultLabelText = val; this._set({ "rfidProcessingScreenResultLabelText": val }); } get rfidProcessingScreenLoadingBar() { return this._rfidProcessingScreenLoadingBar; } set rfidProcessingScreenLoadingBar(val) { this._rfidProcessingScreenLoadingBar = val; this._set({ "rfidProcessingScreenLoadingBar": val }); } static fromJson(jsonObject) { if (jsonObject == null) return null; const result = new CustomizationColors(); result._rfidProcessingScreenBackground = jsonObject["rfidProcessingScreenBackground"]; result._rfidProcessingScreenHintLabelText = jsonObject["rfidProcessingScreenHintLabelText"]; result._rfidProcessingScreenHintLabelBackground = jsonObject["rfidProcessingScreenHintLabelBackground"]; result._rfidProcessingScreenProgressLabelText = jsonObject["rfidProcessingScreenProgressLabelText"]; result._rfidProcessingScreenProgressBar = jsonObject["rfidProcessingScreenProgressBar"]; result._rfidProcessingScreenProgressBarBackground = jsonObject["rfidProcessingScreenProgressBarBackground"]; result._rfidProcessingScreenResultLabelText = jsonObject["rfidProcessingScreenResultLabelText"]; result._rfidProcessingScreenLoadingBar = jsonObject["rfidProcessingScreenLoadingBar"]; return result; } _apply() { this._set(this); } _set(json) { const parentJson = { "colors": json }; var parent = DocumentReader.instance.customization; if (this === parent.colors) parent._set(parentJson); } }