public class PushMessageBody extends Object
| Constructor and Description |
|---|
PushMessageBody() |
| Modifier and Type | Method and Description |
|---|---|
Integer |
getBadge()
App icon badge value (iOS only).
|
String |
getBody()
Get long message text, used as a notification body.
|
String |
getCategory()
Get the notification category, used to distinguish actions assinged with the notification.
|
String |
getCollapseKey()
Get the collapse key, used to collapse messages on the server in case messages cannot be delivered and
as a tag / thread ID to group messages with the same content type.
|
Map<String,Object> |
getExtras()
Get the map (Map<String, Object>) with optional message parameters.
|
String |
getSound()
Get the sound name to be played with the notification.
|
String |
getTitle()
Push message title.
|
Date |
getValidUntil()
Get notification delivery validity (timestamp message should live to in case it's not delivered immediately).
|
void |
setBadge(Integer badge)
Set app icon badge value (iOS only).
|
void |
setBody(String body)
Set long message text, used as a notification body.
|
void |
setCategory(String category)
Set the notification category, used to distinguish actions assinged with the notification.
|
void |
setCollapseKey(String collapseKey)
Set the collapse key, used to collapse messages on the server in case messages cannot be delivered and
as a tag / thread ID to group messages with the same content type.
|
void |
setExtras(Map<String,Object> extras)
Set the map (Map<String, Object>) with optional message parameters.
|
void |
setSound(String sound)
Set the sound name to be played with the notification.
|
void |
setTitle(String title)
Set push message title.
|
void |
setValidUntil(Date validUntil)
Set notification delivery validity (timestamp message should live to in case it's not delivered immediately).
|
public String getTitle()
public void setTitle(String title)
title - Push message title.public String getBody()
public void setBody(String body)
body - Notification body text.public Integer getBadge()
public void setBadge(Integer badge)
badge - App icon badge.public String getSound()
public void setSound(String sound)
sound - Sound name.public String getCategory()
public void setCategory(String category)
category - Notification category.public String getCollapseKey()
public void setCollapseKey(String collapseKey)
collapseKey - Notification collapse key.public Date getValidUntil()
public void setValidUntil(Date validUntil)
validUntil - Validity timestamp.public Map<String,Object> getExtras()
Copyright © 2016–2017 Lime - HighTech Solutions Inc.. All rights reserved.