
PosGateway.Exchange.Hps.PosResponseVer10Header Maven / Gradle / Ivy
package PosGateway.Exchange.Hps;
import java.util.Hashtable;
import org.ksoap2.serialization.*;
public class PosResponseVer10Header extends AttributeContainer implements KvmSerializable {
public Integer LicenseId;
public Integer SiteId;
public Integer DeviceId;
public String SiteTrace;
public Integer GatewayTxnId = 0;
public Integer GatewayRspCode = 0;
public String GatewayRspMsg;
public java.util.Date RspDT;
public TokenDataRspType TokenData;
public Long ClientTxnId;
public String UniqueDeviceId;
public Integer BatchId;
public Integer BatchSeqNbr;
public PosResponseVer10Header() {
}
public PosResponseVer10Header(AttributeContainer inObj, ExtendedSoapSerializationEnvelope envelope) {
if (inObj == null)
return;
SoapObject soapObject = (SoapObject) inObj;
if (soapObject.hasProperty("LicenseId")) {
Object obj = soapObject.getProperty("LicenseId");
if (obj != null && obj.getClass().equals(SoapPrimitive.class)) {
SoapPrimitive j = (SoapPrimitive) obj;
if (j.toString() != null) {
this.LicenseId = Integer.parseInt(j.toString());
}
} else if (obj != null && obj instanceof Integer) {
this.LicenseId = (Integer) obj;
}
}
if (soapObject.hasProperty("SiteId")) {
Object obj = soapObject.getProperty("SiteId");
if (obj != null && obj.getClass().equals(SoapPrimitive.class)) {
SoapPrimitive j = (SoapPrimitive) obj;
if (j.toString() != null) {
this.SiteId = Integer.parseInt(j.toString());
}
} else if (obj != null && obj instanceof Integer) {
this.SiteId = (Integer) obj;
}
}
if (soapObject.hasProperty("DeviceId")) {
Object obj = soapObject.getProperty("DeviceId");
if (obj != null && obj.getClass().equals(SoapPrimitive.class)) {
SoapPrimitive j = (SoapPrimitive) obj;
if (j.toString() != null) {
this.DeviceId = Integer.parseInt(j.toString());
}
} else if (obj != null && obj instanceof Integer) {
this.DeviceId = (Integer) obj;
}
}
if (soapObject.hasProperty("SiteTrace")) {
Object obj = soapObject.getProperty("SiteTrace");
if (obj != null && obj.getClass().equals(SoapPrimitive.class)) {
SoapPrimitive j = (SoapPrimitive) obj;
if (j.toString() != null) {
this.SiteTrace = j.toString();
}
} else if (obj != null && obj instanceof String) {
this.SiteTrace = (String) obj;
}
}
if (soapObject.hasProperty("GatewayTxnId")) {
Object obj = soapObject.getProperty("GatewayTxnId");
if (obj != null && obj.getClass().equals(SoapPrimitive.class)) {
SoapPrimitive j = (SoapPrimitive) obj;
if (j.toString() != null) {
this.GatewayTxnId = Integer.parseInt(j.toString());
}
} else if (obj != null && obj instanceof Integer) {
this.GatewayTxnId = (Integer) obj;
}
}
if (soapObject.hasProperty("GatewayRspCode")) {
Object obj = soapObject.getProperty("GatewayRspCode");
if (obj != null && obj.getClass().equals(SoapPrimitive.class)) {
SoapPrimitive j = (SoapPrimitive) obj;
if (j.toString() != null) {
this.GatewayRspCode = Integer.parseInt(j.toString());
}
} else if (obj != null && obj instanceof Integer) {
this.GatewayRspCode = (Integer) obj;
}
}
if (soapObject.hasProperty("GatewayRspMsg")) {
Object obj = soapObject.getProperty("GatewayRspMsg");
if (obj != null && obj.getClass().equals(SoapPrimitive.class)) {
SoapPrimitive j = (SoapPrimitive) obj;
if (j.toString() != null) {
this.GatewayRspMsg = j.toString();
}
} else if (obj != null && obj instanceof String) {
this.GatewayRspMsg = (String) obj;
}
}
if (soapObject.hasProperty("RspDT")) {
Object obj = soapObject.getProperty("RspDT");
if (obj != null && obj.getClass().equals(SoapPrimitive.class)) {
SoapPrimitive j = (SoapPrimitive) obj;
if (j.toString() != null) {
this.RspDT = Helper.ConvertFromWebService(j.toString());
}
} else if (obj != null && obj instanceof java.util.Date) {
this.RspDT = (java.util.Date) obj;
}
}
if (soapObject.hasProperty("TokenData")) {
Object j = soapObject.getProperty("TokenData");
this.TokenData = (TokenDataRspType) envelope.get(j, TokenDataRspType.class);
}
if (soapObject.hasProperty("ClientTxnId")) {
Object obj = soapObject.getProperty("ClientTxnId");
if (obj != null && obj.getClass().equals(SoapPrimitive.class)) {
SoapPrimitive j = (SoapPrimitive) obj;
if (j.toString() != null) {
this.ClientTxnId = new Long(j.toString());
}
} else if (obj != null && obj instanceof Long) {
this.ClientTxnId = (Long) obj;
}
}
if (soapObject.hasProperty("UniqueDeviceId")) {
Object obj = soapObject.getProperty("UniqueDeviceId");
if (obj != null && obj.getClass().equals(SoapPrimitive.class)) {
SoapPrimitive j = (SoapPrimitive) obj;
if (j.toString() != null) {
this.UniqueDeviceId = j.toString();
}
} else if (obj != null && obj instanceof String) {
this.UniqueDeviceId = (String) obj;
}
}
if (soapObject.hasProperty("BatchId")) {
Object obj = soapObject.getProperty("BatchId");
if (obj != null && obj.getClass().equals(SoapPrimitive.class)) {
SoapPrimitive j = (SoapPrimitive) obj;
if (j.toString() != null) {
this.BatchId = Integer.parseInt(j.toString());
}
} else if (obj != null && obj instanceof Integer) {
this.BatchId = (Integer) obj;
}
}
if (soapObject.hasProperty("BatchSeqNbr")) {
Object obj = soapObject.getProperty("BatchSeqNbr");
if (obj != null && obj.getClass().equals(SoapPrimitive.class)) {
SoapPrimitive j = (SoapPrimitive) obj;
if (j.toString() != null) {
this.BatchSeqNbr = Integer.parseInt(j.toString());
}
} else if (obj != null && obj instanceof Integer) {
this.BatchSeqNbr = (Integer) obj;
}
}
}
@Override
public Object getProperty(int propertyIndex) {
//!!!!! If you have a compilation error here then you are using old version of ksoap2 library. Please upgrade to the latest version.
//!!!!! You can find a correct version in Lib folder from generated zip file!!!!!
if (propertyIndex == 0) {
return LicenseId != null ? LicenseId : SoapPrimitive.NullSkip;
}
if (propertyIndex == 1) {
return SiteId != null ? SiteId : SoapPrimitive.NullSkip;
}
if (propertyIndex == 2) {
return DeviceId != null ? DeviceId : SoapPrimitive.NullSkip;
}
if (propertyIndex == 3) {
return SiteTrace != null ? SiteTrace : SoapPrimitive.NullSkip;
}
if (propertyIndex == 4) {
return GatewayTxnId;
}
if (propertyIndex == 5) {
return GatewayRspCode;
}
if (propertyIndex == 6) {
return GatewayRspMsg != null ? GatewayRspMsg : SoapPrimitive.NullSkip;
}
if (propertyIndex == 7) {
return RspDT != null ? RspDT : SoapPrimitive.NullSkip;
}
if (propertyIndex == 8) {
return TokenData != null ? TokenData : SoapPrimitive.NullSkip;
}
if (propertyIndex == 9) {
return ClientTxnId != null ? ClientTxnId : SoapPrimitive.NullSkip;
}
if (propertyIndex == 10) {
return UniqueDeviceId != null ? UniqueDeviceId : SoapPrimitive.NullSkip;
}
if (propertyIndex == 11) {
return BatchId != null ? BatchId : SoapPrimitive.NullSkip;
}
if (propertyIndex == 12) {
return BatchSeqNbr != null ? BatchSeqNbr : SoapPrimitive.NullSkip;
}
return null;
}
@Override
public int getPropertyCount() {
return 13;
}
@Override
public void getPropertyInfo(int propertyIndex, @SuppressWarnings("rawtypes") Hashtable arg1, PropertyInfo info) {
if (propertyIndex == 0) {
info.type = PropertyInfo.INTEGER_CLASS;
info.name = "LicenseId";
info.namespace = "http://Hps.Exchange.PosGateway";
}
if (propertyIndex == 1) {
info.type = PropertyInfo.INTEGER_CLASS;
info.name = "SiteId";
info.namespace = "http://Hps.Exchange.PosGateway";
}
if (propertyIndex == 2) {
info.type = PropertyInfo.INTEGER_CLASS;
info.name = "DeviceId";
info.namespace = "http://Hps.Exchange.PosGateway";
}
if (propertyIndex == 3) {
info.type = PropertyInfo.STRING_CLASS;
info.name = "SiteTrace";
info.namespace = "http://Hps.Exchange.PosGateway";
}
if (propertyIndex == 4) {
info.type = PropertyInfo.INTEGER_CLASS;
info.name = "GatewayTxnId";
info.namespace = "http://Hps.Exchange.PosGateway";
}
if (propertyIndex == 5) {
info.type = PropertyInfo.INTEGER_CLASS;
info.name = "GatewayRspCode";
info.namespace = "http://Hps.Exchange.PosGateway";
}
if (propertyIndex == 6) {
info.type = PropertyInfo.STRING_CLASS;
info.name = "GatewayRspMsg";
info.namespace = "http://Hps.Exchange.PosGateway";
}
if (propertyIndex == 7) {
info.type = PropertyInfo.STRING_CLASS;
info.name = "RspDT";
info.namespace = "http://Hps.Exchange.PosGateway";
}
if (propertyIndex == 8) {
info.type = TokenDataRspType.class;
info.name = "TokenData";
info.namespace = "http://Hps.Exchange.PosGateway";
}
if (propertyIndex == 9) {
info.type = PropertyInfo.LONG_CLASS;
info.name = "ClientTxnId";
info.namespace = "http://Hps.Exchange.PosGateway";
}
if (propertyIndex == 10) {
info.type = PropertyInfo.STRING_CLASS;
info.name = "UniqueDeviceId";
info.namespace = "http://Hps.Exchange.PosGateway";
}
if (propertyIndex == 11) {
info.type = PropertyInfo.INTEGER_CLASS;
info.name = "BatchId";
info.namespace = "http://Hps.Exchange.PosGateway";
}
if (propertyIndex == 12) {
info.type = PropertyInfo.INTEGER_CLASS;
info.name = "BatchSeqNbr";
info.namespace = "http://Hps.Exchange.PosGateway";
}
}
@Override
public void setProperty(int arg0, Object arg1) {
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy