Back to project page RaceTimer.
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.
package com.liamfruzyna.android.racetimer.objects; // w w w. j a v a 2 s . c o m import com.liamfruzyna.android.racetimer.AppData; import java.util.ArrayList; import java.util.List; /** * Created by mail929 on 9/13/14. */ public class Meet { public int id; public String name; public String shortName; public List<Event> events = new ArrayList<Event>(); public Meet(int id, String name, String shortName, List<Event> events) { this.id = id; this.name = name; this.shortName = shortName; this.events = events; } public Meet(int id, String name, String shortName) { this.id = id; this.name = name; this.shortName = shortName; events = new ArrayList<Event>(); } public void addEvent(double distance, List<Double> checkPoints, String level, List<Integer> runners) { events.add(new Event(events.size(), id, distance, checkPoints, level, runners, false)); AppData.save(); } }