package ca.etsmtl.applets.etsmobile.model;
//----------------------------------------------------
//
// Generated by www.easywsdl.com
// Version: 2.0.0.4
//
// Created by Quasar Development at 15-01-2014
//
//---------------------------------------------------
import java.util.Hashtable;
import org.ksoap2.serialization.AttributeContainer;
import org.ksoap2.serialization.KvmSerializable;
import org.ksoap2.serialization.PropertyInfo;
import org.ksoap2.serialization.SoapObject;
import org.ksoap2.serialization.SoapPrimitive;
import ca.etsmtl.applets.etsmobile.http.soap.ExtendedSoapSerializationEnvelope;
public class DonneesRetournees extends AttributeContainer implements KvmSerializable {
public String erreur;
public DonneesRetournees() {
}
public DonneesRetournees(AttributeContainer inObj, ExtendedSoapSerializationEnvelope envelope) {
if (inObj == null)
return;
SoapObject soapObject = (SoapObject) inObj;
if (soapObject.hasProperty("erreur")) {
Object obj = soapObject.getProperty("erreur");
if (obj != null && obj.getClass().equals(SoapPrimitive.class)) {
SoapPrimitive j = (SoapPrimitive) obj;
if (j.toString() != null) {
erreur = j.toString();
}
} else if (obj != null && obj instanceof String) {
erreur = (String) obj;
}
}
}
@Override
public Object getProperty(int propertyIndex) {
if (propertyIndex == 0) {
return erreur;
}
return null;
}
@Override
public int getPropertyCount() {
return 1;
}
@Override
public void getPropertyInfo(int propertyIndex, @SuppressWarnings("rawtypes") Hashtable arg1, PropertyInfo info) {
if (propertyIndex == +0) {
info.type = PropertyInfo.STRING_CLASS;
info.name = "erreur";
info.namespace = "http://etsmtl.ca/";
}
}
@Override
public void setProperty(int arg0, Object arg1) {
}
}