public class AirlineFlightUpdateTemplateBuilder extends FlightInfoBuilderDelegator
messageBuilder| Modifier and Type | Method and Description |
|---|---|
FlightInfoBuilder<AirlineFlightUpdateTemplateBuilder> |
addFlightInfo(String flightNumber)
Adds a
FlightInfo object to this template. |
AirlineFlightUpdateTemplateBuilder |
addQuickReply(QuickReply reply)
Adds a
QuickReply to the current object. |
AirlineFlightUpdateTemplateBuilder |
addQuickReply(String title,
String payload)
Adds a
QuickReply to the current object. |
FbBotMillResponse |
build(MessageEnvelope envelope)
Builds the
FbBotMillResponse that the bot should return. |
AirlineFlightUpdateTemplateBuilder |
setThemeColor(String themeColor)
Sets the theme color for this template.
|
String |
toString() |
getRecipienteventKind, getAudioMessage, getFileMessage, getImageMessage, getLocationMessage, getVideoMessage, safeGetMessage, safeGetPostbackPayload, safeGetQuickReplyPayload, safeGetRecipient, safeGetRecipientId, safeGetSender, safeGetSenderId, validatepublic FlightInfoBuilder<AirlineFlightUpdateTemplateBuilder> addFlightInfo(String flightNumber)
FlightInfo object to this template. This object is
mandatory and can't be null for Airline templates.flightNumber - the flight number.FlightInfo object.public AirlineFlightUpdateTemplateBuilder setThemeColor(String themeColor)
themeColor - the color for this template. The Color must be a valid RGB
color in the format #RRGGBB.public AirlineFlightUpdateTemplateBuilder addQuickReply(String title, String payload)
QuickReply to the current object.title - the quick reply button label. It can't be empty.payload - the payload sent back when the button is pressed. It can't be
empty.public AirlineFlightUpdateTemplateBuilder addQuickReply(QuickReply reply)
QuickReply to the current object.reply - a quick reply object.public FbBotMillResponse build(MessageEnvelope envelope)
FbBotMillResponse that the bot should return. The
template builders, like this, delegate an
AttachmentMessageBuilder to build the message.envelope - a MessageEnvelope object representing the incoming
message.FbBotMillResponse of this bot.public String toString()
toString in class FlightInfoBuilderDelegatorCopyright © 2017 BotMill. All rights reserved.