Android Open Source - downtown Product From Project Back to project page downtown .
License The source code is released under:
GNU General Public License
If you think the Android project downtown 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 org.dklisiaris.downtown.db;
/ / f r o m w w w . j a v a 2 s . c o m
import java.util.ArrayList;
/**
* Deprecated
* It was used for products in early versions
* Replaced with the Company Class
* @author MeeC
*
*/
public class Product {
static int total_id=0;
int id;
String name, address,tel,description;
ArrayList<String> image_url;
String category,subcategory,area;
boolean avail;
String website;
double latitude,longitude;
public Product(){
this.id=total_id;
Product.total_id++;
}
public Product( String name, String address, String tel,
String description, ArrayList<String> image_url, String category,
String subcategory, String area, boolean avail, String website,
double latitude, double longitude) {
//this.id = id;
this.name = name;
this.address = address;
this.tel = tel;
this.description = description;
this.image_url = image_url;
this.category = category;
this.subcategory = subcategory;
this.area = area;
this.avail = avail;
this.website = website;
this.latitude = latitude;
this.longitude = longitude;
this.id=total_id;
Product.total_id++;
}
public int getId() {
return id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getAddress() {
return address;
}
public void setAddress(String address) {
this.address = address;
}
public String getTel() {
return tel;
}
public void setTel(String tel) {
this.tel = tel;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public ArrayList<String> getImage_url() {
return image_url;
}
public void setImage_url(ArrayList<String> image_url) {
this.image_url = image_url;
}
public String getCategory() {
return category;
}
public void setCategory(String category) {
this.category = category;
}
public String getSubcategory() {
return subcategory;
}
public void setSubcategory(String subcategory) {
this.subcategory = subcategory;
}
public String getArea() {
return area;
}
public void setArea(String area) {
this.area = area;
}
public boolean isAvail() {
return avail;
}
public void setAvail(boolean avail) {
this.avail = avail;
}
public String getWebsite() {
return website;
}
public void setWebsite(String website) {
this.website = website;
}
public double getLatitude() {
return latitude;
}
public void setLatitude(double latitude) {
this.latitude = latitude;
}
public double getLongitude() {
return longitude;
}
public void setLongitude(double longitude) {
this.longitude = longitude;
}
}
Java Source Code List com.google.maps.android.BuildConfig.java com.google.maps.android.BuildConfig.java com.google.maps.android.MarkerManager.java com.google.maps.android.MathUtil.java com.google.maps.android.PolyUtil.java com.google.maps.android.SphericalUtil.java com.google.maps.android.clustering.ClusterItem.java com.google.maps.android.clustering.ClusterManager.java com.google.maps.android.clustering.Cluster.java com.google.maps.android.clustering.algo.Algorithm.java com.google.maps.android.clustering.algo.GridBasedAlgorithm.java com.google.maps.android.clustering.algo.NonHierarchicalDistanceBasedAlgorithm.java com.google.maps.android.clustering.algo.PreCachingAlgorithmDecorator.java com.google.maps.android.clustering.algo.StaticCluster.java com.google.maps.android.clustering.view.ClusterRenderer.java com.google.maps.android.clustering.view.DefaultClusterRenderer.java com.google.maps.android.geometry.Bounds.java com.google.maps.android.geometry.Point.java com.google.maps.android.projection.Point.java com.google.maps.android.projection.SphericalMercatorProjection.java com.google.maps.android.quadtree.PointQuadTree.java com.google.maps.android.ui.BubbleIconFactory.java com.google.maps.android.ui.IconGenerator.java com.google.maps.android.ui.RotationLayout.java com.google.maps.android.ui.SquareTextView.java com.sothree.slidinguppanel.SlidingUpPanelLayout.java com.sothree.slidinguppanel.library.BuildConfig.java com.sothree.slidinguppanel.library.BuildConfig.java org.dklisiaris.downtown.Addresses.java org.dklisiaris.downtown.BuildConfig.java org.dklisiaris.downtown.FavsActivity.java org.dklisiaris.downtown.GlobalData.java org.dklisiaris.downtown.Intro.java org.dklisiaris.downtown.MainActivity.java org.dklisiaris.downtown.Manifest.java org.dklisiaris.downtown.MapActivity.java org.dklisiaris.downtown.MoreActivity.java org.dklisiaris.downtown.Products.java org.dklisiaris.downtown.SearchActivity.java org.dklisiaris.downtown.Search.java org.dklisiaris.downtown.SingleListItem.java org.dklisiaris.downtown.Subcategories.java org.dklisiaris.downtown.SubcatsAndFilters.java org.dklisiaris.downtown.Tabs.java org.dklisiaris.downtown.TestActivity.java org.dklisiaris.downtown.WebViewActivity.java org.dklisiaris.downtown.Websites.java org.dklisiaris.downtown.actionbar.ActionBar.java org.dklisiaris.downtown.actionbar.ScrollingTextView.java org.dklisiaris.downtown.adapters.AddressFilterAdapter.java org.dklisiaris.downtown.adapters.CustomAdapter.java org.dklisiaris.downtown.adapters.CustomStringAdapter.java org.dklisiaris.downtown.adapters.CustomSuggestionsAdapter.java org.dklisiaris.downtown.adapters.MultiSelectionAdapter.java org.dklisiaris.downtown.adapters.SubcatsAdapter.java org.dklisiaris.downtown.db.Banner.java org.dklisiaris.downtown.db.Category.java org.dklisiaris.downtown.db.Company.java org.dklisiaris.downtown.db.DBHandler.java org.dklisiaris.downtown.db.DBInterface.java org.dklisiaris.downtown.db.Image.java org.dklisiaris.downtown.db.InitData.java org.dklisiaris.downtown.db.Keyword.java org.dklisiaris.downtown.db.Mapping.java org.dklisiaris.downtown.db.Product.java org.dklisiaris.downtown.db.QueryBuilder.java org.dklisiaris.downtown.downloader.DownloadTask.java org.dklisiaris.downtown.downloader.NotificationHelper.java org.dklisiaris.downtown.helper.AccessAssets.java org.dklisiaris.downtown.helper.AlertDialogManager.java org.dklisiaris.downtown.helper.ConnectionDetector.java org.dklisiaris.downtown.helper.FileCache.java org.dklisiaris.downtown.helper.ImageLoader.java org.dklisiaris.downtown.helper.InfoHelper.java org.dklisiaris.downtown.helper.KeyboardUtil.java org.dklisiaris.downtown.helper.MemoryCache.java org.dklisiaris.downtown.helper.ShareHelper.java org.dklisiaris.downtown.helper.UpdateConfirmDialog.java org.dklisiaris.downtown.helper.UpdateHelper.java org.dklisiaris.downtown.helper.Utils.java org.dklisiaris.downtown.helper.XMLParser.java org.dklisiaris.downtown.maps.AbstractMapActivity.java org.dklisiaris.downtown.maps.CompanyMarker.java org.dklisiaris.downtown.maps.DirectionsInfo.java org.dklisiaris.downtown.maps.GMapV2Direction.java org.dklisiaris.downtown.maps.Nearby.java org.dklisiaris.downtown.maps.PopupAdapter.java org.dklisiaris.downtown.providers.KeywordContract.java org.dklisiaris.downtown.providers.KeywordProvider.java org.dklisiaris.downtown.widgets.AspectRatioImageView.java org.dklisiaris.downtown.widgets.CheckableRelativeLayout.java org.dklisiaris.downtown.widgets.CustomScrollView.java org.dklisiaris.downtown.widgets.FlipAnimator.java org.dklisiaris.downtown.widgets.InertCheckBox.java org.dklisiaris.downtown.widgets.MultiSpinner.java