com.notnoop.mpns.notifications
Class ToastNotification

java.lang.Object
  extended by com.notnoop.mpns.notifications.ToastNotification
All Implemented Interfaces:
MpnsNotification

public class ToastNotification
extends Object
implements MpnsNotification


Nested Class Summary
static class ToastNotification.Builder
           
 
Constructor Summary
ToastNotification(ToastNotification.Builder builder, List<? extends Map.Entry<String,String>> headers)
           
 
Method Summary
 List<? extends Map.Entry<String,String>> getHttpHeaders()
          Returns the identifier of the current message.
 byte[] getRequestBody()
          Returns the binary representation of the payload.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ToastNotification

public ToastNotification(ToastNotification.Builder builder,
                         List<? extends Map.Entry<String,String>> headers)
Method Detail

getHttpHeaders

public List<? extends Map.Entry<String,String>> getHttpHeaders()
Description copied from interface: MpnsNotification
Returns the identifier of the current message. The identifier is an application generated identifier.

Specified by:
getHttpHeaders in interface MpnsNotification
Returns:
the notification identifier

getRequestBody

public byte[] getRequestBody()
Description copied from interface: MpnsNotification
Returns the binary representation of the payload.

Specified by:
getRequestBody in interface MpnsNotification


Copyright © 2015. All Rights Reserved.