Package com.swrve.sdk
Class SwrveNotificationDetails
- java.lang.Object
-
- com.swrve.sdk.SwrveNotificationDetails
-
public class SwrveNotificationDetails extends java.lang.Object
A POJO describing the basic details about a Swrve notification. A subset of all details.
-
-
Constructor Summary
Constructors Constructor Description SwrveNotificationDetails()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getBody()
Get the body text of the notificationjava.lang.String
getExpandedBody()
Get the expanded body textjava.lang.String
getExpandedTitle()
Get the notification title when expandedandroid.graphics.Bitmap
getMediaBitmap()
Get the media bitmap (image displayed in the notification)java.lang.String
getMediaUrl()
Get the media url (image url displayed in the notification)java.lang.String
getTitle()
Get the notification titlevoid
setBody(java.lang.String body)
Set the body text of the notificationvoid
setExpandedBody(java.lang.String expandedBody)
Set the expanded body textvoid
setExpandedTitle(java.lang.String expandedTitle)
Set the notification title when expandedvoid
setMediaBitmap(android.graphics.Bitmap mediaBitmap)
Set the media bitmap (image displayed in the notification)void
setMediaUrl(java.lang.String mediaUrl)
Set the media url (image url displayed in the notification)void
setTitle(java.lang.String title)
Set the notification title
-
-
-
Method Detail
-
getTitle
public java.lang.String getTitle()
Get the notification title- Returns:
- The notification title.
-
setTitle
public void setTitle(java.lang.String title)
Set the notification title- Parameters:
title
- The notification title.
-
getBody
public java.lang.String getBody()
Get the body text of the notification- Returns:
- The body text of the notification
-
setBody
public void setBody(java.lang.String body)
Set the body text of the notification- Parameters:
body
- The body text
-
getExpandedTitle
public java.lang.String getExpandedTitle()
Get the notification title when expanded- Returns:
- The notification title
-
setExpandedTitle
public void setExpandedTitle(java.lang.String expandedTitle)
Set the notification title when expanded- Parameters:
expandedTitle
- The expanded title
-
getExpandedBody
public java.lang.String getExpandedBody()
Get the expanded body text- Returns:
- The expanded body text
-
setExpandedBody
public void setExpandedBody(java.lang.String expandedBody)
Set the expanded body text- Parameters:
expandedBody
- The expanded body text
-
getMediaUrl
public java.lang.String getMediaUrl()
Get the media url (image url displayed in the notification)- Returns:
- The media url
-
setMediaUrl
public void setMediaUrl(java.lang.String mediaUrl)
Set the media url (image url displayed in the notification)- Parameters:
mediaUrl
- The media url
-
getMediaBitmap
public android.graphics.Bitmap getMediaBitmap()
Get the media bitmap (image displayed in the notification)- Returns:
- The media bitmap
-
setMediaBitmap
public void setMediaBitmap(android.graphics.Bitmap mediaBitmap)
Set the media bitmap (image displayed in the notification)- Parameters:
mediaBitmap
- The media bitmap.
-
-