FoodReorderCluster


public final class FoodReorderCluster


An object representing a Food Reorder Cluster.

Summary

Nested types

public final class FoodReorderCluster.Builder

Builder class for FoodReorderCluster.

Public methods

Uri

Returns the action link of the reorder cluster.

Optional<String>

Returns the action text of the reorder cluster. e.g. "View Cart"

int
List<DisplayTimeWindow>

Returns the display time window associated with the reorder cluster.

List<String>

Returns the labels of the items in the reorder cluster

int

Returns the number of items in the reorder cluster.

List<Image>

Returns the poster images of the items in the reorder cluster.

Optional<String>

Returns the title of the reorder cluster.

Public methods

getActionLinkUri

public Uri getActionLinkUri()

Returns the action link of the reorder cluster.

getActionText

public Optional<StringgetActionText()

Returns the action text of the reorder cluster. e.g. "View Cart"

getClusterType

public int getClusterType()

getDisplayTimeWindows

public List<DisplayTimeWindowgetDisplayTimeWindows()

Returns the display time window associated with the reorder cluster.

This can be used for reorder cluster expiry time window.

getItemLabels

public List<StringgetItemLabels()

Returns the labels of the items in the reorder cluster

getNumberOfItems

public int getNumberOfItems()

Returns the number of items in the reorder cluster.

getPosterImages

public List<ImagegetPosterImages()

Returns the poster images of the items in the reorder cluster.

getTitle

public Optional<StringgetTitle()

Returns the title of the reorder cluster.