public class AirlineCheckinTemplateBuilder extends FlightInfoBuilderDelegator
messageBuilder| Modifier and Type | Method and Description |
|---|---|
FlightInfoBuilder<AirlineCheckinTemplateBuilder> |
addFlightInfo(String flightNumber)
Adds a
FlightInfo object to this template. |
AirlineCheckinTemplateBuilder |
addQuickReply(QuickReply reply)
Adds a
QuickReply to the current object. |
AirlineCheckinTemplateBuilder |
addQuickReply(String title,
String payload)
Adds a
QuickReply to the current object. |
FbBotMillResponse |
build(MessageEnvelope envelope)
Builds the
FbBotMillResponse that the bot should return. |
AirlineCheckinTemplateBuilder |
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<AirlineCheckinTemplateBuilder> addFlightInfo(String flightNumber)
FlightInfo object to this template. This object is
mandatory and can't be null for Airline templates. There can be multiple
flight info object but there must be at least one.flightNumber - the flight number. It can't be empty.FlightInfo object.public AirlineCheckinTemplateBuilder setThemeColor(String themeColor)
themeColor - the color for this template. The Color must be a valid RGB
color in the format #RRGGBB.public AirlineCheckinTemplateBuilder 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 AirlineCheckinTemplateBuilder 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.