@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.
232 lines (200 loc) • 11.6 kB
JavaScript
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 });
}
get rfidEnableNfcTitleText() { return this._rfidEnableNfcTitleText; }
set rfidEnableNfcTitleText(val) {
this._rfidEnableNfcTitleText = val;
this._set({ "rfidEnableNfcTitleText": val });
}
get rfidEnableNfcDescriptionText() { return this._rfidEnableNfcDescriptionText; }
set rfidEnableNfcDescriptionText(val) {
this._rfidEnableNfcDescriptionText = val;
this._set({ "rfidEnableNfcDescriptionText": val });
}
get rfidEnableNfcButtonText() { return this._rfidEnableNfcButtonText; }
set rfidEnableNfcButtonText(val) {
this._rfidEnableNfcButtonText = val;
this._set({ "rfidEnableNfcButtonText": val });
}
get rfidEnableNfcButtonBackground() { return this._rfidEnableNfcButtonBackground; }
set rfidEnableNfcButtonBackground(val) {
this._rfidEnableNfcButtonBackground = val;
this._set({ "rfidEnableNfcButtonBackground": val });
}
get mdlProcessingScreenBackground() { return this._mdlProcessingScreenBackground; }
set mdlProcessingScreenBackground(val) {
this._mdlProcessingScreenBackground = val;
this._set({ "mdlProcessingScreenBackground": val });
}
get mdlProcessingScreenHintLabelText() { return this._mdlProcessingScreenHintLabelText; }
set mdlProcessingScreenHintLabelText(val) {
this._mdlProcessingScreenHintLabelText = val;
this._set({ "mdlProcessingScreenHintLabelText": val });
}
get mdlProcessingScreenHintLabelBackground() { return this._mdlProcessingScreenHintLabelBackground; }
set mdlProcessingScreenHintLabelBackground(val) {
this._mdlProcessingScreenHintLabelBackground = val;
this._set({ "mdlProcessingScreenHintLabelBackground": val });
}
get mdlProcessingScreenProgressLabelText() { return this._mdlProcessingScreenProgressLabelText; }
set mdlProcessingScreenProgressLabelText(val) {
this._mdlProcessingScreenProgressLabelText = val;
this._set({ "mdlProcessingScreenProgressLabelText": val });
}
get mdlProcessingScreenResultLabelText() { return this._mdlProcessingScreenResultLabelText; }
set mdlProcessingScreenResultLabelText(val) {
this._mdlProcessingScreenResultLabelText = val;
this._set({ "mdlProcessingScreenResultLabelText": val });
}
get mdlProcessingScreenLoadingBar() { return this._mdlProcessingScreenLoadingBar; }
set mdlProcessingScreenLoadingBar(val) {
this._mdlProcessingScreenLoadingBar = val;
this._set({ "mdlProcessingScreenLoadingBar": val });
}
get mdlEnableNfcTitleText() { return this._mdlEnableNfcTitleText; }
set mdlEnableNfcTitleText(val) {
this._mdlEnableNfcTitleText = val;
this._set({ "mdlEnableNfcTitleText": val });
}
get mdlEnableNfcDescriptionText() { return this._mdlEnableNfcDescriptionText; }
set mdlEnableNfcDescriptionText(val) {
this._mdlEnableNfcDescriptionText = val;
this._set({ "mdlEnableNfcDescriptionText": val });
}
get mdlEnableNfcButtonText() { return this._mdlEnableNfcButtonText; }
set mdlEnableNfcButtonText(val) {
this._mdlEnableNfcButtonText = val;
this._set({ "mdlEnableNfcButtonText": val });
}
get mdlEnableNfcButtonBackground() { return this._mdlEnableNfcButtonBackground; }
set mdlEnableNfcButtonBackground(val) {
this._mdlEnableNfcButtonBackground = val;
this._set({ "mdlEnableNfcButtonBackground": val });
}
get nextPageIdCardFront() { return this._nextPageIdCardFront; }
set nextPageIdCardFront(val) {
this._nextPageIdCardFront = val;
this._set({ "nextPageIdCardFront": val });
}
get nextPageIdCardBack() { return this._nextPageIdCardBack; }
set nextPageIdCardBack(val) {
this._nextPageIdCardBack = val;
this._set({ "nextPageIdCardBack": val });
}
get nextPagePassportShift() { return this._nextPagePassportShift; }
set nextPagePassportShift(val) {
this._nextPagePassportShift = val;
this._set({ "nextPagePassportShift": val });
}
get nextPagePassportFlip() { return this._nextPagePassportFlip; }
set nextPagePassportFlip(val) {
this._nextPagePassportFlip = val;
this._set({ "nextPagePassportFlip": 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"];
result._rfidEnableNfcTitleText = jsonObject["rfidEnableNfcTitleText"];
result._rfidEnableNfcDescriptionText = jsonObject["rfidEnableNfcDescriptionText"];
result._rfidEnableNfcButtonText = jsonObject["rfidEnableNfcButtonText"];
result._rfidEnableNfcButtonBackground = jsonObject["rfidEnableNfcButtonBackground"];
result._mdlProcessingScreenBackground = jsonObject["mdlProcessingScreenBackground"];
result._mdlProcessingScreenHintLabelText = jsonObject["mdlProcessingScreenHintLabelText"];
result._mdlProcessingScreenHintLabelBackground = jsonObject["mdlProcessingScreenHintLabelBackground"];
result._mdlProcessingScreenProgressLabelText = jsonObject["mdlProcessingScreenProgressLabelText"];
result._mdlProcessingScreenResultLabelText = jsonObject["mdlProcessingScreenResultLabelText"];
result._mdlProcessingScreenLoadingBar = jsonObject["mdlProcessingScreenLoadingBar"];
result._mdlEnableNfcTitleText = jsonObject["mdlEnableNfcTitleText"];
result._mdlEnableNfcDescriptionText = jsonObject["mdlEnableNfcDescriptionText"];
result._mdlEnableNfcButtonText = jsonObject["mdlEnableNfcButtonText"];
result._mdlEnableNfcButtonBackground = jsonObject["mdlEnableNfcButtonBackground"];
result._nextPageIdCardFront = jsonObject["nextPageIdCardFront"];
result._nextPageIdCardBack = jsonObject["nextPageIdCardBack"];
result._nextPagePassportShift = jsonObject["nextPagePassportShift"];
result._nextPagePassportFlip = jsonObject["nextPagePassportFlip"];
return result;
}
_apply() { this._set(this); }
_set(json) {
const parentJson = { "colors": json };
var parent = DocumentReader.instance.customization;
if (this === parent.colors) parent._set(parentJson);
}
toJson() {
return {
"rfidProcessingScreenBackground": this.rfidProcessingScreenBackground,
"rfidProcessingScreenHintLabelText": this.rfidProcessingScreenHintLabelText,
"rfidProcessingScreenHintLabelBackground": this.rfidProcessingScreenHintLabelBackground,
"rfidProcessingScreenProgressLabelText": this.rfidProcessingScreenProgressLabelText,
"rfidProcessingScreenProgressBar": this.rfidProcessingScreenProgressBar,
"rfidProcessingScreenProgressBarBackground": this.rfidProcessingScreenProgressBarBackground,
"rfidProcessingScreenResultLabelText": this.rfidProcessingScreenResultLabelText,
"rfidProcessingScreenLoadingBar": this.rfidProcessingScreenLoadingBar,
"rfidEnableNfcTitleText": this.rfidEnableNfcTitleText,
"rfidEnableNfcDescriptionText": this.rfidEnableNfcDescriptionText,
"rfidEnableNfcButtonText": this.rfidEnableNfcButtonText,
"rfidEnableNfcButtonBackground": this.rfidEnableNfcButtonBackground,
"mdlProcessingScreenBackground": this.mdlProcessingScreenBackground,
"mdlProcessingScreenHintLabelText": this.mdlProcessingScreenHintLabelText,
"mdlProcessingScreenHintLabelBackground": this.mdlProcessingScreenHintLabelBackground,
"mdlProcessingScreenProgressLabelText": this.mdlProcessingScreenProgressLabelText,
"mdlProcessingScreenResultLabelText": this.mdlProcessingScreenResultLabelText,
"mdlProcessingScreenLoadingBar": this.mdlProcessingScreenLoadingBar,
"mdlEnableNfcTitleText": this.mdlEnableNfcTitleText,
"mdlEnableNfcDescriptionText": this.mdlEnableNfcDescriptionText,
"mdlEnableNfcButtonText": this.mdlEnableNfcButtonText,
"mdlEnableNfcButtonBackground": this.mdlEnableNfcButtonBackground,
"nextPageIdCardFront": this.nextPageIdCardFront,
"nextPageIdCardBack": this.nextPageIdCardBack,
"nextPagePassportShift": this.nextPagePassportShift,
"nextPagePassportFlip": this.nextPagePassportFlip,
}
}
}