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 Stringbuild()Returns a JSON representation of the push notification payload under construction.StringbuildMdmPayload(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:ApnsPayloadBuilderReturns a JSON representation of the push notification payload under construction.- Specified by:
buildin classApnsPayloadBuilder- Returns:
- a JSON representation of the payload under construction
- See Also:
ApnsPayloadBuilder.buildPayloadMap()
-
buildMdmPayload
Description copied from class:ApnsPayloadBuilderReturns a JSON representation of a Mobile Device Management "wake up" payload.- Specified by:
buildMdmPayloadin classApnsPayloadBuilder- Parameters:
pushMagicValue- the "push magic" string that the device sends to the MDM server in aTokenUpdatemessage- Returns:
- a JSON representation of an MDM "wake up" notification payload
- See Also:
- Mobile
Device Management (MDM) Protocol,
ApnsPayloadBuilder.buildMdmPayloadMap(String)
-