Package classes

Class 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 as Object_ProfileStyle.
    • Constructor Detail

      • Object_Style

        public 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 Detail

      • getName

        public java.lang.String getName()
      • 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:
        writeToParcel in interface android.os.Parcelable
        Overrides:
        writeToParcel in class Object_BaseObject