Class PushNotificationPayload
- java.lang.Object
-
- com.microstrategy.webapi.paramsobject.PushNotificationPayload
-
public class PushNotificationPayload extends java.lang.Object
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.
-
-
Constructor Summary
Constructors Constructor Description PushNotificationPayload()
PushNotificationPayload(PushNotificationElement pushNotificationElement, java.util.Map<java.lang.String,java.lang.String> data)
PushNotificationPayload(PushNotificationElement pushNotification, java.util.Map<java.lang.String,java.lang.String> data, java.lang.String priority, java.lang.String collapseKey, java.lang.String timeToLive, java.util.Map<java.lang.String,java.lang.String> extraProperties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getCollapseKey()
java.util.Map<java.lang.String,java.lang.String>
getData()
java.util.Map<java.lang.String,java.lang.String>
getExtraProperties()
Get the extra properties of the notification.java.lang.String
getPriority()
PushNotificationElement
getPushNotificationElement()
java.lang.String
getTimeToLive()
void
setCollapseKey(java.lang.String collapseKey)
void
setData(java.util.Map<java.lang.String,java.lang.String> data)
void
setExtraProperties(java.util.Map<java.lang.String,java.lang.String> extraProperties)
Set the extra properties of the notification.void
setPriority(java.lang.String priority)
void
setPushNotificationElement(PushNotificationElement pushNotificationElement)
void
setTimeToLive(java.lang.String timeToLive)
java.lang.String
toString()
void
validate()
-
-
-
Constructor Detail
-
PushNotificationPayload
public PushNotificationPayload()
-
PushNotificationPayload
public PushNotificationPayload(PushNotificationElement pushNotification, java.util.Map<java.lang.String,java.lang.String> data, java.lang.String priority, java.lang.String collapseKey, java.lang.String timeToLive, java.util.Map<java.lang.String,java.lang.String> extraProperties)
-
PushNotificationPayload
public PushNotificationPayload(PushNotificationElement pushNotificationElement, java.util.Map<java.lang.String,java.lang.String> data)
-
-
Method Detail
-
validate
public void validate() throws java.lang.Exception
- Throws:
java.lang.Exception
-
getPushNotificationElement
public PushNotificationElement getPushNotificationElement()
-
setPushNotificationElement
public void setPushNotificationElement(PushNotificationElement pushNotificationElement)
-
getPriority
public java.lang.String getPriority()
-
setPriority
public void setPriority(java.lang.String priority)
-
getCollapseKey
public java.lang.String getCollapseKey()
-
setCollapseKey
public void setCollapseKey(java.lang.String collapseKey)
-
getTimeToLive
public java.lang.String getTimeToLive()
-
setTimeToLive
public void setTimeToLive(java.lang.String timeToLive)
-
getExtraProperties
public java.util.Map<java.lang.String,java.lang.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
-
setExtraProperties
public void setExtraProperties(java.util.Map<java.lang.String,java.lang.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.
-
getData
public java.util.Map<java.lang.String,java.lang.String> getData()
-
setData
public void setData(java.util.Map<java.lang.String,java.lang.String> data)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-