Package classes
Class Object_Style
- java.lang.Object
-
- classes.Object_BaseObject
-
- classes.Object_Style
-
- All Implemented Interfaces:
android.os.Parcelable
public class Object_Style extends Object_BaseObject
Styles express how product characteristics synthesize in the context of human perception and define the nature of consumer taste preferences. These are not unique for each customer, which are represented asObject_ProfileStyle.
-
-
Constructor Summary
Constructors Constructor Description Object_Style(long id, java.lang.String name, java.lang.String type, java.lang.String description, java.lang.String foods, java.lang.String primary_image_url, java.lang.String product_category, java.lang.String location)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDescription()java.util.ArrayList<Object_Food>getFoods()java.lang.StringgetImage()java.lang.StringgetImage(int width, int height, int quality)Get the style image.java.util.ArrayList<Object_Location>getLocations()java.lang.StringgetName()intgetOrder()Object_Product.Other_ProductCategorygetProductCategory()The product category of a style.Object_Product.Other_ProductTypegetProductType()The product type of a style (e.g., Red).voidwriteToParcel(android.os.Parcel dest, int flags)-
Methods inherited from class classes.Object_BaseObject
describeContents, equals, filter, getId, hashCode, setId
-
-
-
-
Method Detail
-
getProductCategory
public Object_Product.Other_ProductCategory getProductCategory()
The product category of a style.- Returns:
- product category.
-
getName
public java.lang.String getName()
-
getProductType
public Object_Product.Other_ProductType getProductType()
The product type of a style (e.g., Red). Only for wines.- Returns:
- product type.
-
getDescription
public java.lang.String getDescription()
-
getOrder
public int getOrder()
-
getLocations
public java.util.ArrayList<Object_Location> getLocations()
-
getFoods
public java.util.ArrayList<Object_Food> getFoods()
-
getImage
public java.lang.String getImage()
-
getImage
public java.lang.String getImage(int width, int height, int quality)Get the style 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.
-
writeToParcel
public void writeToParcel(android.os.Parcel dest, int flags)- Specified by:
writeToParcelin interfaceandroid.os.Parcelable- Overrides:
writeToParcelin classObject_BaseObject
-
-