public class

PushNotificationPayload

extends Object
java.lang.Object
   ↳ com.microstrategy.webapi.paramsobject.PushNotificationPayload

Class Overview

Object that represents a push notification payload. A push notification payload contains a push notification element other different properties and some data. This push notification payload is generic to both iOS (APNS) and Android (FCM) push notification.

Summary

Public Constructors
PushNotificationPayload()
PushNotificationPayload(PushNotificationElement pushNotification, Map<String, String> data, String priority, String collapseKey, String timeToLive, Map<String, String> extraProperties)
PushNotificationPayload(PushNotificationElement pushNotificationElement, Map<String, String> data)
Public Methods
String getCollapseKey()
Map<String, String> getData()
Map<String, String> getExtraProperties()
Get the extra properties of the notification.
String getPriority()
PushNotificationElement getPushNotificationElement()
String getTimeToLive()
void setCollapseKey(String collapseKey)
void setData(Map<String, String> data)
void setExtraProperties(Map<String, String> extraProperties)
Set the extra properties of the notification.
void setPriority(String priority)
void setPushNotificationElement(PushNotificationElement pushNotificationElement)
void setTimeToLive(String timeToLive)
String toString()
void validate()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public PushNotificationPayload ()

public PushNotificationPayload (PushNotificationElement pushNotification, Map<String, String> data, String priority, String collapseKey, String timeToLive, Map<String, String> extraProperties)

public PushNotificationPayload (PushNotificationElement pushNotificationElement, Map<String, String> data)

Public Methods

public String getCollapseKey ()

public Map<String, String> getData ()

public Map<String, String> getExtraProperties ()

Get the extra properties of the notification. Extra properties allow to put extra properties into the notification that are not by default supported. Key => represent the type of the property Value => represent the value of the property

Returns
  • email subject

public String getPriority ()

public PushNotificationElement getPushNotificationElement ()

public String getTimeToLive ()

public void setCollapseKey (String collapseKey)

public void setData (Map<String, String> data)

public void setExtraProperties (Map<String, String> extraProperties)

Set the extra properties of the notification. Extra properties allow to put extra properties into the notification that are not by default supported. Key => represent the type of the property Value => represent the value of the property

Parameters
extraProperties map of the extra properties.

public void setPriority (String priority)

public void setPushNotificationElement (PushNotificationElement pushNotificationElement)

public void setTimeToLive (String timeToLive)

public String toString ()

public void validate ()

Throws
Exception