public class AirlineBoardingPassTemplateBuilder extends AirlineBaseTemplateBuilder
messageBuilder| Modifier and Type | Method and Description |
|---|---|
AirlineBoardingPassTemplateBuilder |
addBoardingPass(BoardingPass boardingPass)
Adds a
BoardingPass object to this template. |
BoardingPassBuilder |
addBoardingPass(String passengerName,
String pnrNumber,
String logoImageUrl,
String aboveBarCodeImageUrl)
Adds a
BoardingPass object to this template. |
AirlineBoardingPassTemplateBuilder |
addQuickReply(QuickReply reply)
Adds a
QuickReply to the current object. |
AirlineBoardingPassTemplateBuilder |
addQuickReply(String title,
String payload)
Adds a
QuickReply to the current object. |
FbBotMillResponse |
build(MessageEnvelope envelope)
Builds the
FbBotMillResponse that the bot should return. |
AirlineBoardingPassTemplateBuilder |
setThemeColor(String themeColor)
Sets the theme color for this template.
|
String |
toString() |
getRecipienteventKind, getLocationMessage, safeGetMessage, safeGetPostbackPayload, safeGetQuickReplyPayload, safeGetRecipient, safeGetRecipientId, safeGetSender, safeGetSenderId, validatepublic BoardingPassBuilder addBoardingPass(String passengerName, String pnrNumber, String logoImageUrl, String aboveBarCodeImageUrl)
BoardingPass object to this template. This field is
mandatory for this template and should contain at least one element.passengerName - the passenger name. It can't be empty.pnrNumber - the Passenger Name Record number (Booking Number). It can't be
empty.logoImageUrl - the URL of the logo. It can't be empty.aboveBarCodeImageUrl - the URL of the image to be shown above the bar code in the
center of the pass. It can't be empty.BoardingPass object.public AirlineBoardingPassTemplateBuilder addBoardingPass(BoardingPass boardingPass)
BoardingPass object to this template. This field is
mandatory for this template and should contain at least one element.boardingPass - the boarding pass object to add. It can't be null.public AirlineBoardingPassTemplateBuilder setThemeColor(String themeColor)
themeColor - the color for this template. The Color must be a valid RGB
color in the format #RRGGBB.public AirlineBoardingPassTemplateBuilder 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 AirlineBoardingPassTemplateBuilder 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 AirlineBaseTemplateBuilderCopyright © 2017 BotMill. All rights reserved.