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

51 lines
1.6 KiB
Java

package com.kofax.kmc.klo.logistics.webservice;
import com.google.android.gms.measurement.api.AppMeasurementSdk;
import com.kofax.kmc.klo.logistics.service.KofaxWebServiceConnectorService;
import com.kofax.mobile.sdk._internal.k;
import o.gmO;
import org.json.JSONObject;
/* loaded from: classes3.dex */
public class WscScanSetting {
public static final String TAG = "WscScanSetting";
private String name;
private String value;
public static WscScanSetting populateFromResponse(gmO gmo) {
WscScanSetting wscScanSetting = new WscScanSetting();
String verySafeSoapProperty = KofaxWebServiceConnectorService.getVerySafeSoapProperty(gmo, "name", null);
String verySafeSoapProperty2 = KofaxWebServiceConnectorService.getVerySafeSoapProperty(gmo, AppMeasurementSdk.ConditionalUserProperty.VALUE, null);
wscScanSetting.setName(verySafeSoapProperty);
wscScanSetting.setValue(verySafeSoapProperty2);
return wscScanSetting;
}
public JSONObject toJSON() {
JSONObject jSONObject = new JSONObject();
try {
jSONObject.put("name", getName());
jSONObject.put(AppMeasurementSdk.ConditionalUserProperty.VALUE, getValue());
} catch (Exception e) {
k.e(TAG, "Unable to convery WscScanSetting to JSONObject", (Throwable) e);
}
return jSONObject;
}
public void setValue(String str) {
this.value = str;
}
public void setName(String str) {
this.name = str;
}
public String getValue() {
return this.value;
}
public String getName() {
return this.name;
}
}