use of ca.etsmtl.applets.etsmobile.model.Programme in project ETSMobile-Android2 by ApplETS.
the class ProfilManager method getProgrammes.
public List<Programme> getProgrammes() {
DatabaseHelper dbHelper = new DatabaseHelper(context);
List<Programme> programmeList = null;
try {
programmeList = dbHelper.getDao(Programme.class).queryForAll();
Collections.sort(programmeList, new ProgrammeComparator());
} catch (SQLException e) {
Log.e("SQL Exception", e.getMessage());
}
return programmeList;
}
use of ca.etsmtl.applets.etsmobile.model.Programme 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));
}
Aggregations