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

92 lines
2.7 KiB
Java

package com.kofax.kmc.klo.logistics.webservice;
import com.google.android.gms.measurement.api.AppMeasurementSdk;
import java.util.Hashtable;
import o.C15281gmQ;
import o.gmO;
/* loaded from: classes3.dex */
public class WscKeyValuePair extends KofaxWebServiceObjectBase {
public static final int PROPERTY_COUNT = 2;
private String key;
private String value;
/* loaded from: classes3.dex */
public interface FIELD_INDEXES {
public static final int IDX_KEY = 0;
public static final int IDX_VALUE = 1;
}
@Override // com.kofax.kmc.klo.logistics.webservice.KofaxWebServiceObjectBase, o.InterfaceC15276gmJ
public int getPropertyCount() {
return 2;
}
@Override // com.kofax.kmc.klo.logistics.webservice.KofaxWebServiceObjectBase, o.InterfaceC15276gmJ
public Object getProperty(int i) {
if (i == 0) {
return getKey();
}
if (i != 1) {
return null;
}
return getValue();
}
@Override // com.kofax.kmc.klo.logistics.webservice.KofaxWebServiceObjectBase, o.InterfaceC15276gmJ
public void getPropertyInfo(int i, Hashtable hashtable, C15281gmQ c15281gmQ) {
if (i == 0) {
c15281gmQ.m = "key";
c15281gmQ.k = C15281gmQ.j;
} else if (i == 1) {
c15281gmQ.m = AppMeasurementSdk.ConditionalUserProperty.VALUE;
c15281gmQ.k = C15281gmQ.j;
}
c15281gmQ.a(getProperty(i));
}
@Override // com.kofax.kmc.klo.logistics.webservice.KofaxWebServiceObjectBase, o.InterfaceC15276gmJ
public void setProperty(int i, Object obj) {
String obj2 = obj != null ? obj.toString() : "";
if (i == 0) {
setKey(obj2);
} else if (i == 1) {
setValue(obj2);
}
}
protected void initialize(String str, String str2) {
setKey(str);
setValue(str2);
}
public static WscKeyValuePair initializeRequest(String str, String str2) {
WscKeyValuePair wscKeyValuePair = new WscKeyValuePair();
wscKeyValuePair.initialize(str, str2);
return wscKeyValuePair;
}
public gmO toSoapObject(String str, String str2, String str3) {
gmO gmo = new gmO(str, str2);
gmo.b.addElement(createPropertyInfo(str3, "key", getKey(), C15281gmQ.j));
gmo.b.addElement(createPropertyInfo(str3, AppMeasurementSdk.ConditionalUserProperty.VALUE, getValue(), C15281gmQ.j));
return gmo;
}
public void setValue(String str) {
this.value = str;
}
public void setKey(String str) {
this.key = str;
}
public String getValue() {
return this.value;
}
public String getKey() {
return this.key;
}
}