// Path: device-apps/disc-golf/disc-golf-android/app/src/main/java/com/garmin/android/apps/samples/disgolf/AppConstants.java
// public class AppConstants {
// 
// 	public static final int KEY_MESSAGE_TYPE = -1;
// 	public static final int KEY_MESSAGE_PAYLOAD = -2;
// 	public static final int KEY_COURSE_ID = 0;
// 	public static final int KEY_COURSE_NAME = 1;
// 	public static final int KEY_COURSE_PAR = 2;
// 	public static final int KEY_COURSE_TEES_PLAYED = 3;
// 	public static final int KEY_PLAYERS = 4;
// 	public static final int KEY_PLAYER_NAME = 5;
// 	public static final int KEY_PLAYER_ID = 6;
// 	public static final int KEY_PLAYER_SCORES = 11;
// 	public static final int KEY_HOLES = 7;
// 	public static final int KEY_HOLE_NUMBER = 8;
// 	public static final int KEY_HOLE_PAR = 9;
// 	public static final int KEY_HOLE_DISTANCE = 10;
// 
// }


import android.os.Parcel;
import android.os.Parcelable;
import com.garmin.android.apps.samples.disgolf.AppConstants;
import com.garmin.monkeybrains.serialization.MonkeyHash;
import com.garmin.monkeybrains.serialization.MonkeyType;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
		in.readList(mPlayers, Player.class.getClassLoader());
	}

    // ------------------------------------------------------------------------
    // METHODS
    // ------------------------------------------------------------------------

	public void addHole(Hole hole) {
		mHoles.add(hole);
	}

	public void setHoles(List<Hole> holes) {
		mHoles = holes;
	}

	public void addPlayer(Player player) {
		mPlayers.add(player);
	}

	public void setPlayers(List<Player> players) {
		mPlayers = players;
	}

	public String getCourseName() {
		return mCourseName;
	}

	@Override
	public MonkeyType toMonkeyObject() {
		HashMap<Object, Object> returnVal = new HashMap<Object, Object>();
// Path: device-apps/disc-golf/disc-golf-android/app/src/main/java/com/garmin/android/apps/samples/disgolf/AppConstants.java
// public class AppConstants {
// 
// 	public static final int KEY_MESSAGE_TYPE = -1;
// 	public static final int KEY_MESSAGE_PAYLOAD = -2;
// 	public static final int KEY_COURSE_ID = 0;
// 	public static final int KEY_COURSE_NAME = 1;
// 	public static final int KEY_COURSE_PAR = 2;
// 	public static final int KEY_COURSE_TEES_PLAYED = 3;
// 	public static final int KEY_PLAYERS = 4;
// 	public static final int KEY_PLAYER_NAME = 5;
// 	public static final int KEY_PLAYER_ID = 6;
// 	public static final int KEY_PLAYER_SCORES = 11;
// 	public static final int KEY_HOLES = 7;
// 	public static final int KEY_HOLE_NUMBER = 8;
// 	public static final int KEY_HOLE_PAR = 9;
// 	public static final int KEY_HOLE_DISTANCE = 10;
// 
// }


// Path: device-apps/disc-golf/disc-golf-android/app/src/main/java/com/garmin/android/apps/samples/disgolf/course/Course.java
import android.os.Parcel;
import android.os.Parcelable;
import com.garmin.android.apps.samples.disgolf.AppConstants;
import com.garmin.monkeybrains.serialization.MonkeyHash;
import com.garmin.monkeybrains.serialization.MonkeyType;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

		in.readList(mPlayers, Player.class.getClassLoader());
	}

    // ------------------------------------------------------------------------
    // METHODS
    // ------------------------------------------------------------------------

	public void addHole(Hole hole) {
		mHoles.add(hole);
	}

	public void setHoles(List<Hole> holes) {
		mHoles = holes;
	}

	public void addPlayer(Player player) {
		mPlayers.add(player);
	}

	public void setPlayers(List<Player> players) {
		mPlayers = players;
	}

	public String getCourseName() {
		return mCourseName;
	}

	@Override
	public MonkeyType toMonkeyObject() {
		HashMap<Object, Object> returnVal = new HashMap<Object, Object>();
		returnVal.put(AppConstants.KEY_COURSE_ID, mCourseId);