Package de.brendamour.jpasskit
Class PKPassBuilder
java.lang.Object
de.brendamour.jpasskit.PKPassBuilder
- All Implemented Interfaces:
IPKBuilder<PKPass>,IPKValidateable
Allows constructing and validating
PKPass entities.- Author:
- Igor Stepanov
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<PWAssociatedAppBuilder>protected List<PKBarcodeBuilder>protected List<PKBeaconBuilder>protected List<PKLocationBuilder> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappLaunchURL(String appLaunchURL) associatedAppBuilder(PWAssociatedAppBuilder associatedApp) associatedApps(List<PWAssociatedApp> associatedApps) associatedStoreIdentifier(Long associatedStoreIdentifier) associatedStoreIdentifiers(List<Long> associatedStoreIdentifiers) authenticationToken(String authenticationToken) backgroundColor(Color backgroundColor) backgroundColor(String backgroundColor) barcodeBuilder(PKBarcodeBuilder barcode) beaconsBuilder(PKBeaconBuilder beacon) build()description(String description) expirationDate(Instant expirationInstant) expirationDate(Date expirationDate) Deprecated.foregroundColor(Color foregroundColor) foregroundColor(String foregroundColor) formatVersion(int formatVersion) groupingIdentifier(String groupingIdentifier) booleanisValid()labelColor(Color labelColor) labelColor(String labelColor) locationBuilder(PKLocationBuilder location) locations(List<PKLocation> locations) maxDistance(Long maxDistance) organizationName(String organizationName) pass(PKBoardingPass boardingPass) pass(PKGenericPass generic) pass(PKGenericPassBuilder pass) passTypeIdentifier(String passTypeIdentifier) relevantDate(Instant relevantInstant) relevantDate(Date relevantDate) Deprecated.semantics(PKSemantics semantics) serialNumber(String serialNumber) sharingProhibited(boolean sharingProhibited) teamIdentifier(String teamIdentifier) toString()voided(boolean voided) webServiceURL(URL webServiceURL)
-
Field Details
-
beacons
-
locations
-
barcodes
-
associatedApps
-
associatedStoreIdentifiers
-
-
Constructor Details
-
PKPassBuilder
protected PKPassBuilder()
-
-
Method Details
-
getBeaconBuilders
-
getLocationBuilders
-
getBarcodeBuilders
-
getAssociatedStoreIdentifiers
-
getAssociatedAppBuilders
-
getPassBuilder
-
of
- Specified by:
ofin interfaceIPKBuilder<PKPass>
-
serialNumber
-
passTypeIdentifier
-
webServiceURL
-
appLaunchURL
-
authenticationToken
-
formatVersion
-
description
-
teamIdentifier
-
voided
-
organizationName
-
userInfo
-
logoText
-
foregroundColor
-
foregroundColor
-
backgroundColor
-
backgroundColor
-
beaconsBuilder
-
beacons
-
maxDistance
-
locationBuilder
-
locations
-
barcodeBuilder
-
barcodes
-
pass
-
pass
-
pass
-
labelColor
-
labelColor
-
groupingIdentifier
-
associatedStoreIdentifier
-
associatedStoreIdentifiers
-
associatedAppBuilder
-
associatedApps
-
relevantDate
Deprecated. -
expirationDate
Deprecated. -
relevantDate
-
expirationDate
-
nfc
-
sharingProhibited
-
semantics
-
isValid
public boolean isValid()- Specified by:
isValidin interfaceIPKValidateable
-
getValidationErrors
- Specified by:
getValidationErrorsin interfaceIPKValidateable
-
toString
-
build
- Specified by:
buildin interfaceIPKBuilder<PKPass>
-