what-the-bank/sources/com/kofax/kmc/klo/logistics/webservice/WscDestination.java

166 lines
6.1 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.kofax.kmc.klo.logistics.webservice;
import com.google.android.gms.measurement.api.AppMeasurementSdk;
import com.kofax.kmc.klo.logistics.service.KofaxWebServiceConnectorService;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import o.C15281gmQ;
import o.gmO;
import org.simpleframework.xml.strategy.Name;
/* loaded from: classes3.dex */
public class WscDestination extends KofaxWebServiceObjectBase {
private String backendId;
private byte backendType;
private String dataStoreName;
private String displayValue;
private String formTypeId;
private String iconType;
private String id;
private List<WscIndexField> indexFields = new ArrayList();
private String shortcutName;
private int shortcutTypeOrdinal;
private boolean showNotificationDialog;
private String value;
public static WscDestination populateFromResponse(gmO gmo) {
WscDestination wscDestination = new WscDestination();
wscDestination.setBackendId(KofaxWebServiceConnectorService.getVerySafeSoapProperty(gmo, "backendId", null));
wscDestination.setBackendType(Byte.parseByte(KofaxWebServiceConnectorService.getVerySafeSoapProperty(gmo, "backendType", null)));
wscDestination.setDataStoreName(KofaxWebServiceConnectorService.getVerySafeSoapProperty(gmo, "dataStoreName", null));
wscDestination.setDisplayValue(KofaxWebServiceConnectorService.getVerySafeSoapProperty(gmo, "displayValue", null));
wscDestination.setFormTypeId(KofaxWebServiceConnectorService.getVerySafeSoapProperty(gmo, "formTypeId", null));
wscDestination.setIconType(KofaxWebServiceConnectorService.getVerySafeSoapProperty(gmo, "iconType", null));
wscDestination.setId(KofaxWebServiceConnectorService.getVerySafeSoapProperty(gmo, Name.MARK, null));
wscDestination.setShortcutName(KofaxWebServiceConnectorService.getVerySafeSoapProperty(gmo, "shortcutName", null));
wscDestination.setShortcutTypeOrdinal(Integer.parseInt(KofaxWebServiceConnectorService.getVerySafeSoapProperty(gmo, "shortcutTypeOrdinal", null)));
wscDestination.setShowNotificationDialog("true".equals(KofaxWebServiceConnectorService.getVerySafeSoapProperty(gmo, "showNotificationDialog", null)));
wscDestination.setValue(KofaxWebServiceConnectorService.getVerySafeSoapProperty(gmo, AppMeasurementSdk.ConditionalUserProperty.VALUE, null));
for (int i = 0; i < gmo.getPropertyCount(); i++) {
C15281gmQ c15281gmQ = new C15281gmQ();
gmo.a(i, c15281gmQ);
if (c15281gmQ.c() != null && c15281gmQ.m.equals("indexFields")) {
wscDestination.indexFields.add(WscIndexField.populateFromResponse((gmO) c15281gmQ.c()));
}
}
return wscDestination;
}
public gmO toSoapObject(String str, String str2, String str3) {
gmO gmo = new gmO(str, str2);
gmo.b.addElement(createPropertyInfo(str3, "backendId", getBackendId(), C15281gmQ.j));
gmo.b.addElement(createPropertyInfo(str3, "backendType", Byte.valueOf(getBackendType()), Byte.class));
gmo.b.addElement(createPropertyInfo(str3, "dataStoreName", getDataStoreName(), C15281gmQ.j));
gmo.b.addElement(createPropertyInfo(str3, "displayValue", getDisplayValue(), C15281gmQ.j));
gmo.b.addElement(createPropertyInfo(str3, "formTypeId", getFormTypeId(), C15281gmQ.j));
gmo.b.addElement(createPropertyInfo(str3, "iconType", getIconType(), C15281gmQ.j));
gmo.b.addElement(createPropertyInfo(str3, Name.MARK, getId(), C15281gmQ.j));
Iterator<WscIndexField> it = this.indexFields.iterator();
while (it.hasNext()) {
gmo.b.addElement(it.next().toSoapObject("http://util.wsc.des.kofax.com/xsd", "indexFields"));
}
gmo.b.addElement(createPropertyInfo(str3, "shortcutName", getShortcutName(), C15281gmQ.j));
gmo.b.addElement(createPropertyInfo(str3, "shortcutTypeOrdinal", Integer.valueOf(getShortcutTypeOrdinal()), C15281gmQ.c));
gmo.b.addElement(createPropertyInfo(str3, "showNotificationDialog", Boolean.valueOf(isShowNotificationDialog()), C15281gmQ.d));
gmo.b.addElement(createPropertyInfo(str3, AppMeasurementSdk.ConditionalUserProperty.VALUE, getValue(), C15281gmQ.j));
return gmo;
}
public void setValue(String str) {
this.value = str;
}
public void setShowNotificationDialog(boolean z) {
this.showNotificationDialog = z;
}
public void setShortcutTypeOrdinal(int i) {
this.shortcutTypeOrdinal = i;
}
public void setShortcutName(String str) {
this.shortcutName = str;
}
public void setIndexFields(List<WscIndexField> list) {
this.indexFields = list;
}
public void setId(String str) {
this.id = str;
}
public void setIconType(String str) {
this.iconType = str;
}
public void setFormTypeId(String str) {
this.formTypeId = str;
}
public void setDisplayValue(String str) {
this.displayValue = str;
}
public void setDataStoreName(String str) {
this.dataStoreName = str;
}
public void setBackendType(byte b) {
this.backendType = b;
}
public void setBackendId(String str) {
this.backendId = str;
}
public boolean isShowNotificationDialog() {
return this.showNotificationDialog;
}
public String getValue() {
return this.value;
}
public int getShortcutTypeOrdinal() {
return this.shortcutTypeOrdinal;
}
public String getShortcutName() {
return this.shortcutName;
}
public List<WscIndexField> getIndexFields() {
return this.indexFields;
}
public String getId() {
return this.id;
}
public String getIconType() {
return this.iconType;
}
public String getFormTypeId() {
return this.formTypeId;
}
public String getDisplayValue() {
return this.displayValue;
}
public String getDataStoreName() {
return this.dataStoreName;
}
public byte getBackendType() {
return this.backendType;
}
public String getBackendId() {
return this.backendId;
}
}