Package im.getsocial.sdk.notifications
Class NotificationButton
- java.lang.Object
-
- im.getsocial.sdk.notifications.NotificationButton
-
public final class NotificationButton extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CONSUME_ACTION
static java.lang.String
IGNORE_ACTION
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NotificationButton
create(java.lang.String title, java.lang.String id)
Create a new notification button.java.lang.String
getId()
java.lang.String
getTitle()
-
-
-
Field Detail
-
CONSUME_ACTION
public static final java.lang.String CONSUME_ACTION
- See Also:
- Constant Field Values
-
IGNORE_ACTION
public static final java.lang.String IGNORE_ACTION
- See Also:
- Constant Field Values
-
-
Method Detail
-
create
public static NotificationButton create(java.lang.String title, java.lang.String id)
Create a new notification button.- Parameters:
title
- title of the button.id
- ID of action. Could be oneCONSUME_ACTION
,IGNORE_ACTION
or custom action.- Returns:
- new instance.
-
getTitle
public java.lang.String getTitle()
- Returns:
- title of the button.
-
getId
public java.lang.String getId()
- Returns:
- ID of action. Could be one
CONSUME_ACTION
,IGNORE_ACTION
or custom action.
-
-