// Path: src/org/immopoly/android/constants/Const.java
// public class Const {
// 
// 	public static final String LOG_TAG = "IMPO";
// 
// 	// Intents
// 
// 	// Intent open webview
// 	public static final String EXPOSE_ID = "exposeID";
// 	public static final String EXPOSE_NAME = "exposeName";
// 	public static final String EXPOSE_DESC = "exposeDescription";
// 	public static final String EXPOSE_URL = "exposeURL";
// 	public static final String EXPOSE_IN_PORTOFOLIO = "exposeInPortfolio";
// 	
// //	public static final String EXPOSE_OWNED = "exposeOwned";
// 
// 	// Intent add portofolio
// 	public static final String EXPOSE_ADD_PORTIFOLIO = "addToPortifolio";
// 	public static final String EXPOSE_RELEASE_PORTIFOLIO = "releaseFromPortifolio";
// 
// 	public static final String SOURCE = "source";
// 
// 	// immopoly
// 	public static final String EXPOSE_PICTURE_SMALL = "exposeDescription";
// 
// 	public static final String SHARED_PREF_EXPOSE_WEBVIEW = "exposeWebView";
// 	public static final String KEY_VISITED = "visited";
// 
// 	public static final String AUTH_URL = "oauth_url";
// 	public static final long EXPOSE_THRESHOLD_OLD = 1000L * 60L * 60L * 24L
// 			* 30L;
// 	public static final long EXPOSE_THRESHOLD_NEW = 1000L * 60L * 60L * 24L
// 			* 7L;
// 
// 	public static final String MESSAGE_IMMOPOLY_EXCEPTION = "org.immopoly.common.ImmopolyException";
// 
// 	public static final String IMMOPOLY_EMAIL = "immopolyteam@gmail.com";
// 	public static final int ANALYTICS_INTERVAL = 20;
// 
// 	public static final int USER_SIGNUP = 110;
// 
// 	// IS24 search control - search different radii until at least SEARCH_MIN_RESULTS flats are found  
// 	public static final float[] SEARCH_RADII 	   = { 1, 3, 10 }; // in km
// 	public static final int     SEARCH_MIN_RESULTS = 50;		   // ignored for last search radius
// 	public static final int     SEARCH_MAX_RESULTS = 80;		   // forced result limit. fernglas me, baby!
// }


import java.util.ArrayList;
import org.immopoly.android.constants.Const;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import android.util.Log;
/*
 * This is the Android component of Immopoly
 * http://immopoly.appspot.com
 * Copyright (C) 2011 Tobias Sasse
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see http://www.gnu.org/licenses/.
 */

package org.immopoly.android.model;




public class Flats extends ArrayList<Flat> {

	/**
	 * Make sure when adding fields to add them in write to Parcel as well
	 */
	private static final long serialVersionUID = 4642208262846389104L;

	public Flats() {}

	public Flats( int capacity ) {
		super( capacity );
	}
	
	public void parse(JSONObject obj) {
		try {
			Flat item;
// Path: src/org/immopoly/android/constants/Const.java
// public class Const {
// 
// 	public static final String LOG_TAG = "IMPO";
// 
// 	// Intents
// 
// 	// Intent open webview
// 	public static final String EXPOSE_ID = "exposeID";
// 	public static final String EXPOSE_NAME = "exposeName";
// 	public static final String EXPOSE_DESC = "exposeDescription";
// 	public static final String EXPOSE_URL = "exposeURL";
// 	public static final String EXPOSE_IN_PORTOFOLIO = "exposeInPortfolio";
// 	
// //	public static final String EXPOSE_OWNED = "exposeOwned";
// 
// 	// Intent add portofolio
// 	public static final String EXPOSE_ADD_PORTIFOLIO = "addToPortifolio";
// 	public static final String EXPOSE_RELEASE_PORTIFOLIO = "releaseFromPortifolio";
// 
// 	public static final String SOURCE = "source";
// 
// 	// immopoly
// 	public static final String EXPOSE_PICTURE_SMALL = "exposeDescription";
// 
// 	public static final String SHARED_PREF_EXPOSE_WEBVIEW = "exposeWebView";
// 	public static final String KEY_VISITED = "visited";
// 
// 	public static final String AUTH_URL = "oauth_url";
// 	public static final long EXPOSE_THRESHOLD_OLD = 1000L * 60L * 60L * 24L
// 			* 30L;
// 	public static final long EXPOSE_THRESHOLD_NEW = 1000L * 60L * 60L * 24L
// 			* 7L;
// 
// 	public static final String MESSAGE_IMMOPOLY_EXCEPTION = "org.immopoly.common.ImmopolyException";
// 
// 	public static final String IMMOPOLY_EMAIL = "immopolyteam@gmail.com";
// 	public static final int ANALYTICS_INTERVAL = 20;
// 
// 	public static final int USER_SIGNUP = 110;
// 
// 	// IS24 search control - search different radii until at least SEARCH_MIN_RESULTS flats are found  
// 	public static final float[] SEARCH_RADII 	   = { 1, 3, 10 }; // in km
// 	public static final int     SEARCH_MIN_RESULTS = 50;		   // ignored for last search radius
// 	public static final int     SEARCH_MAX_RESULTS = 80;		   // forced result limit. fernglas me, baby!
// }


// Path: src/org/immopoly/android/model/Flats.java
import java.util.ArrayList;
import org.immopoly.android.constants.Const;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import android.util.Log;

/*
 * This is the Android component of Immopoly
 * http://immopoly.appspot.com
 * Copyright (C) 2011 Tobias Sasse
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see http://www.gnu.org/licenses/.
 */

package org.immopoly.android.model;




public class Flats extends ArrayList<Flat> {

	/**
	 * Make sure when adding fields to add them in write to Parcel as well
	 */
	private static final long serialVersionUID = 4642208262846389104L;

	public Flats() {}

	public Flats( int capacity ) {
		super( capacity );
	}
	
	public void parse(JSONObject obj) {
		try {
			Flat item;
			JSONObject resultList = obj.getJSONObject("resultlist.resultlist");