FoodReorderCluster.Builder


class FoodReorderCluster.Builder


Builder class for FoodReorderCluster.

Summary

Public constructors

Public functions

FoodReorderCluster.Builder!

Adds the display time window for the reorder cluster.

FoodReorderCluster.Builder!

Adds the display time window for the reorder cluster.

FoodReorderCluster.Builder!

Add a item label in the reorder cluster

FoodReorderCluster.Builder!

Add a list of item labels in the reorder cluster

FoodReorderCluster.Builder!

Adds a poster image of the items in the reorder cluster.

FoodReorderCluster.Builder!

Adds poster images of the items in the reorder cluster.

FoodReorderCluster!
FoodReorderCluster.Builder!

Sets the action link uri for the reorder cluster.

FoodReorderCluster.Builder!

Sets the action text of the reorder cluster. e.g. "Reorder"

FoodReorderCluster.Builder!

Sets the number of items in the reorder cluster.

FoodReorderCluster.Builder!

Sets the title of the reorder cluster.

Public constructors

Builder

Builder()

Public functions

addAllDisplayTimeWindow

@CanIgnoreReturnValue
fun addAllDisplayTimeWindow(
    displayTimeWindows: (Mutable)List<DisplayTimeWindow!>!
): FoodReorderCluster.Builder!

Adds the display time window for the reorder cluster.

Optional.

addDisplayTimeWindow

@CanIgnoreReturnValue
fun addDisplayTimeWindow(displayTimeWindow: DisplayTimeWindow!): FoodReorderCluster.Builder!

Adds the display time window for the reorder cluster.

Optional.

addItemLabel

@CanIgnoreReturnValue
fun addItemLabel(itemLabel: String!): FoodReorderCluster.Builder!

Add a item label in the reorder cluster

Optional.

addItemLabels

@CanIgnoreReturnValue
fun addItemLabels(itemLabels: (Mutable)List<String!>!): FoodReorderCluster.Builder!

Add a list of item labels in the reorder cluster

Optional.

addPosterImage

@CanIgnoreReturnValue
fun addPosterImage(image: Image!): FoodReorderCluster.Builder!

Adds a poster image of the items in the reorder cluster.

Optional.

addPosterImages

@CanIgnoreReturnValue
fun addPosterImages(images: (Mutable)List<Image!>!): FoodReorderCluster.Builder!

Adds poster images of the items in the reorder cluster.

Optional.

build

fun build(): FoodReorderCluster!

setActionLinkUri

@CanIgnoreReturnValue
fun setActionLinkUri(actionLinkUri: Uri!): FoodReorderCluster.Builder!

Sets the action link uri for the reorder cluster.

Required.

setActionText

@CanIgnoreReturnValue
fun setActionText(actionText: String!): FoodReorderCluster.Builder!

Sets the action text of the reorder cluster. e.g. "Reorder"

Optional.

setNumberOfItems

@CanIgnoreReturnValue
fun setNumberOfItems(numberOfItems: Int): FoodReorderCluster.Builder!

Sets the number of items in the reorder cluster.

When set to 0, the reorder cluster is empty.

Optional.

setTitle

@CanIgnoreReturnValue
fun setTitle(title: String!): FoodReorderCluster.Builder!

Sets the title of the reorder cluster.

Optional.