public class Notification
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Notification.ActionType
Deprecated.
Use
ActionTypes instead. |
static class |
Notification.Builder |
static class |
Notification.Key
Deprecated.
Use
ActionDataKeys instead. |
static class |
Notification.NotificationType |
Modifier and Type | Method and Description |
---|---|
static Notification.Builder |
builder(java.lang.String id) |
Action |
getAction()
Action to be done on notification click.
|
java.util.List<ActionButton> |
getActionButtons()
Return a list of buttons for this notification.
|
java.util.Map<java.lang.String,java.lang.String> |
getActionData()
Deprecated.
Use
getAction() . |
int |
getActionType()
Deprecated.
Use
getAction() . |
long |
getCreatedAt()
Date of notification creation.
|
NotificationCustomization |
getCustomization()
Returns customization settings, like background image, title color, etc.
|
java.lang.String |
getId()
Get the unique notification identifier.
|
java.lang.String |
getImageUrl()
Returns the attached image url.
|
UserReference |
getSender()
Returns the sender of notification.
|
java.lang.String |
getStatus()
Status of Notification.
|
java.lang.String |
getText()
Text of notification.
|
java.lang.String |
getTitle()
Title of notification.
|
java.lang.String |
getType()
One of the constants in
Notification.NotificationType . |
java.lang.String |
getVideoUrl()
Returns the attached video url.
|
java.lang.String |
toString() |
boolean |
wasRead()
Deprecated.
use
getStatus() . |
public static Notification.Builder builder(java.lang.String id)
public java.lang.String getTitle()
public java.lang.String getText()
public Action getAction()
ActionTypes
.public java.util.List<ActionButton> getActionButtons()
@Deprecated public int getActionType()
getAction()
.Notification.ActionType
.@Deprecated public java.util.Map<java.lang.String,java.lang.String> getActionData()
getAction()
.ActionDataKeys
.public java.lang.String getId()
public boolean wasRead()
getStatus()
.public java.lang.String getStatus()
NotificationStatus
.public java.lang.String getType()
Notification.NotificationType
.public long getCreatedAt()
public java.lang.String getImageUrl()
public java.lang.String getVideoUrl()
public UserReference getSender()
public NotificationCustomization getCustomization()
public java.lang.String toString()
toString
in class java.lang.Object
(c) Copyright GetSocial BV, 2020. All Rights Reserved.