public class BoardingPassBuilder extends FlightInfoBuilderDelegator
BoardingPass object.messageBuilder| Modifier and Type | Method and Description |
|---|---|
BoardingPassBuilder |
addAuxiliaryField(Field auxiliaryField)
Adds an auxiliary field for the current
BoardingPass object. |
BoardingPassBuilder |
addAuxiliaryField(String label,
String value)
Adds an auxiliary field for the current
BoardingPass object. |
FlightInfoBuilder<BoardingPassBuilder> |
addFlightInfo(String flightNumber)
Adds a
FlightInfo object to this BoardingPass. |
BoardingPassBuilder |
addSecondaryField(Field secondaryField)
Adds a secondary field for the current
BoardingPass object. |
BoardingPassBuilder |
addSecondaryField(String label,
String value)
Adds a secondary field for the current
BoardingPass object. |
AirlineBoardingPassTemplateBuilder |
endBoardingPass()
Builds the current object, adds it to the parent builder and returns the
parent builder.
|
BoardingPassBuilder |
setBarcodeImageUrl(String barcodeImageUrl)
Sets the URL of the barcode image for the current
BoardingPass
object. |
BoardingPassBuilder |
setHeaderImageUrl(String headerImageUrl)
Sets the header image URL for the current
BoardingPass object. |
BoardingPassBuilder |
setHeaderTextField(String headerTextField)
Sets the header text for the current
BoardingPass object. |
BoardingPassBuilder |
setQrCode(String qrCode)
Sets the Aztec or QR code for the current
BoardingPass object. |
BoardingPassBuilder |
setSeat(String seat)
Sets the seat for the current
BoardingPass object. |
BoardingPassBuilder |
setTravelClass(TravelClass travelClass)
Sets the
TravelClass for the current BoardingPass object. |
String |
toString() |
getRecipienteventKind, getAudioMessage, getFileMessage, getImageMessage, getLocationMessage, getVideoMessage, safeGetMessage, safeGetPostbackPayload, safeGetQuickReplyPayload, safeGetRecipient, safeGetRecipientId, safeGetSender, safeGetSenderId, validatepublic BoardingPassBuilder setTravelClass(TravelClass travelClass)
TravelClass for the current BoardingPass object.
This field is optional.travelClass - the travel class to set.public BoardingPassBuilder setSeat(String seat)
BoardingPass object. This field is
optional.seat - the seat to set.public BoardingPassBuilder addAuxiliaryField(String label, String value)
BoardingPass object. This
field is optional. There can be at most 5 auxiliary fields per boarding
pass.label - the label for the additional field. It can't be empty.value - the value for the additional field. It can't be empty.public BoardingPassBuilder addAuxiliaryField(Field auxiliaryField)
BoardingPass object. This
field is optional. There can be at most 5 auxiliary fields per boarding
pass.auxiliaryField - the field to add. It can't be null.public BoardingPassBuilder addSecondaryField(String label, String value)
BoardingPass object. This
field is optional. There can be at most 5 secondary fields per boarding
pass.label - the label for the additional field. It can't be empty.value - the value for the additional field. It can't be empty.public BoardingPassBuilder addSecondaryField(Field secondaryField)
BoardingPass object. This
field is optional. There can be at most 5 secondary fields per boarding
pass.secondaryField - the field to add. It can't be null.public BoardingPassBuilder setHeaderImageUrl(String headerImageUrl)
BoardingPass object.
This field is optional.headerImageUrl - the URL of the header image.public BoardingPassBuilder setHeaderTextField(String headerTextField)
BoardingPass object. This
field is optional.headerTextField - the text of the header.public BoardingPassBuilder setQrCode(String qrCode)
BoardingPass object.
This field or the barcode image URL must be set.qrCode - the Aztec or QR code. It can't be empty unless the barcode
image URL is set.setBarcodeImageUrl(String)public BoardingPassBuilder setBarcodeImageUrl(String barcodeImageUrl)
BoardingPass
object. This field or the QR code must be set.barcodeImageUrl - the URL of the barcode image. It can't be empty unless the QR
code is set.setQrCode(String)public FlightInfoBuilder<BoardingPassBuilder> addFlightInfo(String flightNumber)
FlightInfo object to this BoardingPass. This
object is mandatory and can't be null for Airline templates.flightNumber - the flight number. It can't be empty.FlightInfo object.public AirlineBoardingPassTemplateBuilder endBoardingPass()
public String toString()
toString in class FlightInfoBuilderDelegatorCopyright © 2017 BotMill. All rights reserved.