Search in sources :

Example 6 with Etudiant

use of ca.etsmtl.applets.etsmobile.model.Etudiant in project ETSMobile-Android2 by ApplETS.

the class SignetsMobileSoap method infoEtudiant.

/**
	 * Information de base sur l'��tudiant: nom, pr��nom, code permanent, solde
	 */
public Etudiant infoEtudiant(final String codeAccesUniversel, final String motPasse) throws Exception {
    return (Etudiant) execute(new IWcfMethod() {

        @Override
        public ExtendedSoapSerializationEnvelope CreateSoapEnvelope() {
            ExtendedSoapSerializationEnvelope __envelope = createEnvelope();
            SoapObject __soapReq = new SoapObject("http://etsmtl.ca/", "infoEtudiant");
            __envelope.setOutputSoapObject(__soapReq);
            PropertyInfo __info = null;
            __info = new PropertyInfo();
            __info.namespace = "http://etsmtl.ca/";
            __info.name = "codeAccesUniversel";
            __info.type = PropertyInfo.STRING_CLASS;
            __info.setValue(codeAccesUniversel);
            __soapReq.addProperty(__info);
            __info = new PropertyInfo();
            __info.namespace = "http://etsmtl.ca/";
            __info.name = "motPasse";
            __info.type = PropertyInfo.STRING_CLASS;
            __info.setValue(motPasse);
            __soapReq.addProperty(__info);
            return __envelope;
        }

        @Override
        public Object ProcessResult(ExtendedSoapSerializationEnvelope __envelope, SoapObject __result) throws Exception {
            return (Etudiant) getResult(Etudiant.class, __result, "infoEtudiantResult", __envelope);
        }
    }, "http://etsmtl.ca/infoEtudiant");
}
Also used : Etudiant(ca.etsmtl.applets.etsmobile.model.Etudiant) SoapObject(org.ksoap2.serialization.SoapObject) PropertyInfo(org.ksoap2.serialization.PropertyInfo)

Example 7 with Etudiant

use of ca.etsmtl.applets.etsmobile.model.Etudiant in project ETSMobile-Android2 by ApplETS.

the class ProfilFragment method updateUI.

@Override
void updateUI() {
    Etudiant etudiant = profilManager.getEtudiant();
    profileAdapter.updateEtudiant(etudiant);
    List<Programme> programmes = profilManager.getProgrammes();
    profileAdapter.updateListeDesProgrammes(new ArrayList<Programme>(programmes));
}
Also used : Etudiant(ca.etsmtl.applets.etsmobile.model.Etudiant) Programme(ca.etsmtl.applets.etsmobile.model.Programme)

Aggregations

Etudiant (ca.etsmtl.applets.etsmobile.model.Etudiant)7 Programme (ca.etsmtl.applets.etsmobile.model.Programme)2 SQLException (java.sql.SQLException)2 Intent (android.content.Intent)1 View (android.view.View)1 DatabaseHelper (ca.etsmtl.applets.etsmobile.db.DatabaseHelper)1 AuthentificationPortailTask (ca.etsmtl.applets.etsmobile.http.AuthentificationPortailTask)1 SignetsMobileSoap (ca.etsmtl.applets.etsmobile.http.soap.SignetsMobileSoap)1 WebServiceSoap (ca.etsmtl.applets.etsmobile.http.soap.WebServiceSoap)1 ArrayOfFicheEmploye (ca.etsmtl.applets.etsmobile.model.ArrayOfFicheEmploye)1 ArrayOfService (ca.etsmtl.applets.etsmobile.model.ArrayOfService)1 FicheEmploye (ca.etsmtl.applets.etsmobile.model.FicheEmploye)1 ListeDeSessions (ca.etsmtl.applets.etsmobile.model.ListeDeSessions)1 Service (ca.etsmtl.applets.etsmobile.model.Service)1 Trimestre (ca.etsmtl.applets.etsmobile.model.Trimestre)1 ca.etsmtl.applets.etsmobile.model.listeDesProgrammes (ca.etsmtl.applets.etsmobile.model.listeDesProgrammes)1 ca.etsmtl.applets.etsmobile.model.listeHoraireExamensFinaux (ca.etsmtl.applets.etsmobile.model.listeHoraireExamensFinaux)1 ca.etsmtl.applets.etsmobile.model.listeJoursRemplaces (ca.etsmtl.applets.etsmobile.model.listeJoursRemplaces)1 ca.etsmtl.applets.etsmobile.model.listeSeances (ca.etsmtl.applets.etsmobile.model.listeSeances)1 ProfilFragment (ca.etsmtl.applets.etsmobile.ui.fragment.ProfilFragment)1