Package classes
Class Object_Food
- java.lang.Object
-
- classes.Object_BaseObject
-
- classes.Object_Food
-
- All Implemented Interfaces:
android.os.Parcelable
public class Object_Food extends Object_BaseObject
You can use foods to get pairings withinPreferabli.getRecs(Object_Product.Other_ProductCategory, Object_Product.Other_ProductType, Long, Integer, Integer, ArrayList, ArrayList, Boolean, API_ResultHandler).
-
-
Field Summary
Fields Modifier and Type Field Description static android.os.Parcelable.Creator<Object_Food>CREATOR
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanfilter(java.io.Serializable serializable)java.lang.StringgetDescription()java.lang.StringgetImage(int width, int height, int quality)Get the food's image.java.lang.StringgetKeywords()java.lang.StringgetName()static java.util.ArrayList<Object_Food>sortFoods(java.util.ArrayList<Object_Food> foods)voidwriteToParcel(android.os.Parcel dest, int flags)-
Methods inherited from class classes.Object_BaseObject
describeContents, equals, getId, hashCode, setId
-
-
-
-
Field Detail
-
CREATOR
public static final android.os.Parcelable.Creator<Object_Food> CREATOR
-
-
Method Detail
-
getKeywords
public java.lang.String getKeywords()
-
getName
public java.lang.String getName()
-
getDescription
public java.lang.String getDescription()
-
getImage
public java.lang.String getImage(int width, int height, int quality)Get the food's image.- Parameters:
width- returns an image with the specified width in pixels.height- returns an image with the specified height in pixels.quality- returns an image with the specified quality. Scales from 0 - 100.- Returns:
- the URL of the requested image.
-
filter
public boolean filter(java.io.Serializable serializable)
- Overrides:
filterin classObject_BaseObject
-
sortFoods
public static java.util.ArrayList<Object_Food> sortFoods(java.util.ArrayList<Object_Food> foods)
-
writeToParcel
public void writeToParcel(android.os.Parcel dest, int flags)- Specified by:
writeToParcelin interfaceandroid.os.Parcelable- Overrides:
writeToParcelin classObject_BaseObject
-
-