ProductEntity


public final class ProductEntity extends Entity


An object representing a product entity. (e.g. grocery item, dish from a restaurant, promotion)

Summary

Nested types

public final class ProductEntity.Builder

Builder class for ProductEntity.

Public methods

Uri

Returns the action link uri of the food entity.

Optional<String>

Returns the callout of the product entity. e.g. "Free delivery"

Optional<String>

Returns the fine print for the callout text e.g. "For a limited time".

List<DisplayTimeWindow>

Returns the display time window associated with the product entity.

Optional<String>

Returns the id of the entity.

List<Image>

Returns the poster image of the entity.

Optional<Price>

Returns the price of the product entity

Optional<Rating>

Returns the rating of the food entity.

Optional<String>

Returns the title of the food entity.

Public methods

getActionLinkUri

public Uri getActionLinkUri()

Returns the action link uri of the food entity.

getCallout

public Optional<StringgetCallout()

Returns the callout of the product entity. e.g. "Free delivery"

getCalloutFinePrint

public Optional<StringgetCalloutFinePrint()

Returns the fine print for the callout text e.g. "For a limited time".

getDisplayTimeWindows

public List<DisplayTimeWindowgetDisplayTimeWindows()

Returns the display time window associated with the product entity.

This can be used for several usecases like offer expiry time window, preorder availability time window.

getEntityId

public Optional<StringgetEntityId()

Returns the id of the entity.

getPosterImages

public List<ImagegetPosterImages()

Returns the poster image of the entity.

getPrice

public Optional<PricegetPrice()

Returns the price of the product entity

getRating

public Optional<RatinggetRating()

Returns the rating of the food entity.

getTitle

public Optional<StringgetTitle()

Returns the title of the food entity.