Package classes
Class Object_Collection
- java.lang.Object
-
- classes.Object_BaseObject
-
- classes.Object_Collection
-
- All Implemented Interfaces:
android.os.Parcelable
public class Object_Collection extends Object_BaseObject
A collection is a selection ofObject_Product, organized into one or moreObject_Collection.Object_CollectionGroup. For example, a collection can represent an inventory for a store or just a subset of products, such as selection of products that are currently on sale or a selection of private-label products. In general, a collection will be anObject_Collection.Other_CollectionType.INVENTORYor anObject_Collection.Other_CollectionType.EVENT. Events are temporal in nature, such as a tasting events or weekly promotions. Inventories, whether entire inventories or subsets of an inventory, are meant to change from time to time but are not specifically temporal in nature. A Collection may also be aObject_Collection.Other_CollectionType.CELLARtype (e.g., aObject_Customer's personal cellar) orObject_Collection.Other_CollectionType.OTHERtype. Collections are structured as follows: a collection has one or moreObject_Collection.Object_CollectionVersions. Each version has one or moreObject_Collection.Object_CollectionGroups. And each group contains one or moreObject_Collection.Object_CollectionOrders, which link directly to aObject_Tagand thus by reference aObject_Product.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classObject_Collection.Object_CollectionGroupProducts in a Collection are organized into one or more groups.static classObject_Collection.Object_CollectionOrderThe link between aObject_Tag(which in turn references aObject_Product) and aObject_Collection, including its ordering within the Collection.static classObject_Collection.Object_CollectionTraitA trait descriptor for aObject_Collection.static classObject_Collection.Object_CollectionVersionA version of aObject_Collection.static classObject_Collection.Other_CollectionTypeThe type of aObject_Collection.
-
Field Summary
Fields Modifier and Type Field Description static android.os.Parcelable.Creator<Object_Collection>CREATORbooleanisPublic
-
Constructor Summary
Constructors Constructor Description Object_Collection(long id, long channel_id, long sort_channel_id, java.lang.String name, java.lang.String display_name, java.lang.String description, java.lang.String code, boolean published, java.lang.String start_date, java.lang.String end_date, java.lang.String comment, java.lang.String created_at, java.lang.String updated_at, java.lang.String traits, java.lang.String image, java.lang.String venue, int order, boolean auto_wili, java.lang.String sort_channel_name, java.lang.String badge_method, java.lang.String currency, java.lang.String timezone, boolean display_time, boolean display_price, boolean display_quantity, boolean display_bin, boolean is_blind, boolean display_group_headings, boolean has_predict_order, int product_count, boolean is_pinned, boolean is_browsable, boolean archived)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanfilter(java.io.Serializable serializable)java.lang.StringgetBadgeMethod()longgetChannelId()java.lang.StringgetCode()Object_Collection.Other_CollectionTypegetCollectionType()Collection Type of a specific collection.java.lang.StringgetComment()java.lang.StringgetCreatedAt()java.lang.StringgetCurrency()java.lang.StringgetDescription()java.lang.StringgetEndDate()Object_Collection.Object_CollectionVersiongetFirstVersion()java.lang.StringgetImage(int width, int height, int quality)Get the collection's image.java.lang.StringgetName()intgetProductCount()longgetSortChannelId()java.lang.StringgetSortChannelName()java.lang.StringgetStartDate()java.lang.StringgetTimezone()java.util.ArrayList<Object_Collection.Object_CollectionTrait>getTraits()java.lang.StringgetUpdatedAt()Object_VenuegetVenue()java.util.ArrayList<Object_Collection.Object_CollectionVersion>getVersions()booleanhasPredictOrder()booleanisArchived()booleanisBlind()booleanisBrowsable()booleanisDisplayBin()booleanisDisplayGroupHeadings()booleanisDisplayPrice()booleanisDisplayQuantity()booleanisDisplayTime()booleanisEvent()Lets us know if a collection is of the typeObject_Collection.Other_CollectionType.EVENT.booleanisInventory()Lets us know if a collection is of the typeObject_Collection.Other_CollectionType.INVENTORY.booleanisMyCellar()booleanisPublic()booleanisPublished()voidwriteToParcel(android.os.Parcel dest, int flags)-
Methods inherited from class classes.Object_BaseObject
describeContents, equals, getId, hashCode, setId
-
-
-
-
Field Detail
-
isPublic
@SerializedName("public") public boolean isPublic
-
CREATOR
public static final android.os.Parcelable.Creator<Object_Collection> CREATOR
-
-
Constructor Detail
-
Object_Collection
public Object_Collection(long id, long channel_id, long sort_channel_id, java.lang.String name, java.lang.String display_name, java.lang.String description, java.lang.String code, boolean published, java.lang.String start_date, java.lang.String end_date, java.lang.String comment, java.lang.String created_at, java.lang.String updated_at, java.lang.String traits, java.lang.String image, java.lang.String venue, int order, boolean auto_wili, java.lang.String sort_channel_name, java.lang.String badge_method, java.lang.String currency, java.lang.String timezone, boolean display_time, boolean display_price, boolean display_quantity, boolean display_bin, boolean is_blind, boolean display_group_headings, boolean has_predict_order, int product_count, boolean is_pinned, boolean is_browsable, boolean archived)
-
-
Method Detail
-
getCollectionType
public Object_Collection.Other_CollectionType getCollectionType()
Collection Type of a specific collection. In general, a Collection will be anObject_Collection.Other_CollectionType.INVENTORYor anObject_Collection.Other_CollectionType.EVENT. Events are temporal in nature, such as a tasting events or weekly promotions. Inventories, whether entire inventories or subsets of an inventory, are meant to change from time to time but are not specifically temporal in nature.
-
isArchived
public boolean isArchived()
-
isBrowsable
public boolean isBrowsable()
-
getProductCount
public int getProductCount()
-
hasPredictOrder
public boolean hasPredictOrder()
-
isMyCellar
public boolean isMyCellar()
-
getTimezone
public java.lang.String getTimezone()
-
isDisplayPrice
public boolean isDisplayPrice()
-
isPublic
public boolean isPublic()
-
isDisplayBin
public boolean isDisplayBin()
-
getSortChannelName
public java.lang.String getSortChannelName()
-
isDisplayQuantity
public boolean isDisplayQuantity()
-
isDisplayTime
public boolean isDisplayTime()
-
isBlind
public boolean isBlind()
-
getCurrency
public java.lang.String getCurrency()
-
getBadgeMethod
public java.lang.String getBadgeMethod()
-
getSortChannelId
public long getSortChannelId()
-
getVersions
public java.util.ArrayList<Object_Collection.Object_CollectionVersion> getVersions()
-
getFirstVersion
public Object_Collection.Object_CollectionVersion getFirstVersion()
-
getImage
public java.lang.String getImage(int width, int height, int quality)Get the collection'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.
-
getChannelId
public long getChannelId()
-
getName
public java.lang.String getName()
-
getDescription
public java.lang.String getDescription()
-
getCode
public java.lang.String getCode()
-
isPublished
public boolean isPublished()
-
getStartDate
public java.lang.String getStartDate()
-
getEndDate
public java.lang.String getEndDate()
-
getComment
public java.lang.String getComment()
-
getCreatedAt
public java.lang.String getCreatedAt()
-
getUpdatedAt
public java.lang.String getUpdatedAt()
-
getTraits
public java.util.ArrayList<Object_Collection.Object_CollectionTrait> getTraits()
-
getVenue
public Object_Venue getVenue()
-
filter
public boolean filter(java.io.Serializable serializable)
- Overrides:
filterin classObject_BaseObject
-
isDisplayGroupHeadings
public boolean isDisplayGroupHeadings()
-
isInventory
public boolean isInventory()
Lets us know if a collection is of the typeObject_Collection.Other_CollectionType.INVENTORY.- Returns:
- boolean
-
isEvent
public boolean isEvent()
Lets us know if a collection is of the typeObject_Collection.Other_CollectionType.EVENT.- Returns:
- boolean
-
writeToParcel
public void writeToParcel(android.os.Parcel dest, int flags)- Specified by:
writeToParcelin interfaceandroid.os.Parcelable- Overrides:
writeToParcelin classObject_BaseObject
-
-