WalletObjectMessage.Builder

public final class WalletObjectMessage.Builder extends Object

Builder to create a WalletObjectMessage.

Public Method Summary

WalletObjectMessage
WalletObjectMessage.Builder
setActionUri(UriData uri)
This method is deprecated. This value is unused by the platform and will be removed in the future.
WalletObjectMessage.Builder
setBody(String body)
Sets the message body.
WalletObjectMessage.Builder
setDisplayInterval(TimeInterval interval)
Sets the period of time that the message will be displayed to users.
WalletObjectMessage.Builder
setHeader(String header)
Sets the message header.
WalletObjectMessage.Builder
setImageUri(UriData uri)
This method is deprecated. This value is unused by the platform and will be removed in the future.

Inherited Method Summary

Public Methods

public WalletObjectMessage build ()

public WalletObjectMessage.Builder setActionUri (UriData uri)

This method is deprecated.
This value is unused by the platform and will be removed in the future.

Sets the uri to which users are directed when they click on the message.

public WalletObjectMessage.Builder setBody (String body)

Sets the message body.

The maximum length is 200 characters for an expanded template with no image or 150 characters if you specify an image.

public WalletObjectMessage.Builder setDisplayInterval (TimeInterval interval)

Sets the period of time that the message will be displayed to users.

TimeInterval can have both start timestamp and end timestamp defined for each message. A message is displayed immediately after a Wallet Object is inserted unless a startTimeTimestamp is set. The message will appear in a list of messages indefinitely if endTimestamp is not provided.

public WalletObjectMessage.Builder setHeader (String header)

Sets the message header.

The maximum length is 35 characters for an expanded template with no image or 25 characters if you specify an image.

public WalletObjectMessage.Builder setImageUri (UriData uri)

This method is deprecated.
This value is unused by the platform and will be removed in the future.

Sets the uri of the image to display with the message.