Package com.eatthepath.pushy.apns.util
Class SimpleApnsPayloadBuilder
java.lang.Object
com.eatthepath.pushy.apns.util.ApnsPayloadBuilder
com.eatthepath.pushy.apns.util.SimpleApnsPayloadBuilder
public class SimpleApnsPayloadBuilder extends ApnsPayloadBuilder
A simple APNs payload builder that serializes payloads using a
JsonSerializer
.- Since:
- 0.14.0
- Author:
- Jon Chambers
-
Field Summary
Fields inherited from class com.eatthepath.pushy.apns.util.ApnsPayloadBuilder
DEFAULT_SOUND_FILENAME, EMPTY_STRING_ARRAY
-
Constructor Summary
Constructors Constructor Description SimpleApnsPayloadBuilder()
-
Method Summary
Modifier and Type Method Description String
build()
Returns a JSON representation of the push notification payload under construction.String
buildMdmPayload(String pushMagicValue)
Returns a JSON representation of a Mobile Device Management "wake up" payload.Methods inherited from class com.eatthepath.pushy.apns.util.ApnsPayloadBuilder
addCustomProperty, setActionButtonLabel, setAlertBody, setAlertSubtitle, setAlertTitle, setBadgeNumber, setCategoryName, setContentAvailable, setLaunchImageFileName, setLocalizedActionButtonKey, setLocalizedAlertMessage, setLocalizedAlertSubtitle, setLocalizedAlertTitle, setMutableContent, setPreferStringRepresentationForAlerts, setShowActionButton, setSound, setSound, setSoundFileName, setSummaryArgument, setSummaryArgumentCount, setTargetContentId, setThreadId, setUrlArguments, setUrlArguments
-
Constructor Details
-
SimpleApnsPayloadBuilder
public SimpleApnsPayloadBuilder()
-
-
Method Details
-
build
Description copied from class:ApnsPayloadBuilder
Returns a JSON representation of the push notification payload under construction.- Specified by:
build
in classApnsPayloadBuilder
- Returns:
- a JSON representation of the payload under construction
- See Also:
ApnsPayloadBuilder.buildPayloadMap()
-
buildMdmPayload
Description copied from class:ApnsPayloadBuilder
Returns a JSON representation of a Mobile Device Management "wake up" payload.- Specified by:
buildMdmPayload
in classApnsPayloadBuilder
- Parameters:
pushMagicValue
- the "push magic" string that the device sends to the MDM server in aTokenUpdate
message- Returns:
- a JSON representation of an MDM "wake up" notification payload
- See Also:
- Mobile
Device Management (MDM) Protocol,
ApnsPayloadBuilder.buildMdmPayloadMap(String)
-