Search in sources :

Example 46 with Rider

use of ch.hsr.sa.radiotour.dataaccess.models.Rider in project app by TourLive.

the class VirtualClassFragment method updateRiders.

public void updateRiders(RealmList<Rider> riders) {
    recyclerAdapter.clear();
    for (Rider r : riders) {
        recyclerAdapter.add(new VirtualClassementRider(this, mContext, r));
    }
    recyclerAdapter.notifyDataSetChanged();
}
Also used : VirtualClassementRider(ch.hsr.sa.radiotour.presentation.models.VirtualClassementRider) Rider(ch.hsr.sa.radiotour.dataaccess.models.Rider) VirtualClassementRider(ch.hsr.sa.radiotour.presentation.models.VirtualClassementRider)

Aggregations

Rider (ch.hsr.sa.radiotour.dataaccess.models.Rider)46 RealmList (io.realm.RealmList)17 Realm (io.realm.Realm)13 RaceGroup (ch.hsr.sa.radiotour.dataaccess.models.RaceGroup)9 Test (org.junit.Test)9 RiderStageConnection (ch.hsr.sa.radiotour.dataaccess.models.RiderStageConnection)5 TextView (android.widget.TextView)3 Judgement (ch.hsr.sa.radiotour.dataaccess.models.Judgement)3 JSONException (org.json.JSONException)3 Fragment (android.support.v4.app.Fragment)2 View (android.view.View)2 JudgmentRiderConnection (ch.hsr.sa.radiotour.dataaccess.models.JudgmentRiderConnection)2 RiderRanking (ch.hsr.sa.radiotour.dataaccess.models.RiderRanking)2 Manifest (android.Manifest)1 AlertDialog (android.app.AlertDialog)1 TimePickerDialog (android.app.TimePickerDialog)1 Context (android.content.Context)1 DialogInterface (android.content.DialogInterface)1 PackageManager (android.content.pm.PackageManager)1 Location (android.location.Location)1