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. Please see the documentation for JsonSerializer for details about how this payload builder serializes custom properties.
Since:
0.14.0
Author:
Jon Chambers
  • Constructor Details

    • SimpleApnsPayloadBuilder

      public SimpleApnsPayloadBuilder()
  • Method Details

    • build

      public String build()
      Description copied from class: ApnsPayloadBuilder
      Returns a JSON representation of the push notification payload under construction.
      Specified by:
      build in class ApnsPayloadBuilder
      Returns:
      a JSON representation of the payload under construction
      See Also:
      • ApnsPayloadBuilder.buildPayloadMap()
    • buildMdmPayload

      public String buildMdmPayload(String pushMagicValue)
      Description copied from class: ApnsPayloadBuilder
      Returns a JSON representation of a Mobile Device Management "wake up" payload.
      Specified by:
      buildMdmPayload in class ApnsPayloadBuilder
      Parameters:
      pushMagicValue - the "push magic" string that the device sends to the MDM server in a TokenUpdate message
      Returns:
      a JSON representation of an MDM "wake up" notification payload
      See Also: