Android Open Source - RaceTimer Runner






From Project

Back to project page RaceTimer.

License

The source code is released under:

GNU General Public License

If you think the Android project RaceTimer listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.liamfruzyna.android.racetimer.objects;
/* w  w  w . j  a va  2  s.c  om*/
import java.util.ArrayList;
import java.util.List;

/**
 * Created by mail929 on 9/13/14.
 */
public class Runner
{
    public int id;
    public String name;
    public List<Integer> teams = new ArrayList<Integer>();
    public List<Time> times = new ArrayList<Time>();

    public Runner(int id, String name)
    {
        this.id = id;
        this.name = name;
    }

    public Runner(int id, String name, List<Integer> teams)
    {
        this.id = id;
        this.name = name;
        this.teams = teams;
    }

    public Runner(int id, String name, List<Integer> teams, List<Time> times)
    {
        this.id = id;
        this.name = name;
        this.teams = teams;
        this.times = times;
    }

    public Time getTime(int meetId, int eventId)
    {
        for(int i = 0; i < times.size(); i++)
        {
            if(meetId == times.get(i).meetId && eventId == times.get(i).eventId)
            {
                return times.get(i);
            }
        }
        return null;
    }
}




Java Source Code List

com.liamfruzyna.android.racetimer.AppData.java
com.liamfruzyna.android.racetimer.ApplicationTest.java
com.liamfruzyna.android.racetimer.Fab.java
com.liamfruzyna.android.racetimer.RTActivity.java
com.liamfruzyna.android.racetimer.fragments.AddEventFragment.java
com.liamfruzyna.android.racetimer.fragments.AddMeetFragment.java
com.liamfruzyna.android.racetimer.fragments.AddTeamFragment.java
com.liamfruzyna.android.racetimer.fragments.EventFragment.java
com.liamfruzyna.android.racetimer.fragments.HomeFragment.java
com.liamfruzyna.android.racetimer.fragments.InRaceFragment.java
com.liamfruzyna.android.racetimer.fragments.MeetFragment.java
com.liamfruzyna.android.racetimer.fragments.RunnerFragment.java
com.liamfruzyna.android.racetimer.fragments.TeamFragment.java
com.liamfruzyna.android.racetimer.objects.Event.java
com.liamfruzyna.android.racetimer.objects.Meet.java
com.liamfruzyna.android.racetimer.objects.Runner.java
com.liamfruzyna.android.racetimer.objects.Team.java
com.liamfruzyna.android.racetimer.objects.Time.java