return resultsArr;
}
+ public NfcCardData getLatestNfcCardData(int cardId) {
+ String value = null;
+ String[] whereArgs = {
+ Integer.toString(cardId)
+ };
+ Cursor resultSet = database.rawQuery("SELECT CardId,UpdateTime,CardBalance,CardLastTransaction FROM NfcCardStore WHERE CardId = ? ORDER BY UpdateTime DESC LIMIT 1", whereArgs);
+ NfcCardData nfcCardData = null;
+ if(resultSet.moveToFirst()) {
+ nfcCardData = new NfcCardData(resultSet.getInt(0), resultSet.getLong(1), resultSet.getInt(2), resultSet.getInt(3));
+ }
+ resultSet.close();
+ return nfcCardData;
+ }
+
public void updateCourseCalendar(CourseEvent event) {
if(vorlesungsplanDBHelper == null)
vorlesungsplanDBHelper = new VorlesungsplanDatabaseHelper(AppContext, database);