com.netmera.mobile
Class NetmeraRichPushObject

java.lang.Object
  extended by com.netmera.mobile.NetmeraPushObject
      extended by com.netmera.mobile.NetmeraRichPushObject

public class NetmeraRichPushObject
extends NetmeraPushObject

This is the class to manage and create incoming/created rich push notifications that is inherited from NetmeraPushObject.


Nested Class Summary
static class NetmeraRichPushObject.RichPushStatus
          Statuses of rich pushes according to functions to perform.
 
Nested classes/interfaces inherited from class com.netmera.mobile.NetmeraPushObject
NetmeraPushObject.NotificationType
 
Constructor Summary
NetmeraRichPushObject()
           
 
Method Summary
 java.util.Date getExpirationDate()
           
 java.lang.String getInjectScript()
           
 java.lang.String getRichPushHtml()
          Get rich push HTML of the incoming push notification.
 java.lang.String getRichPushStatus()
          Get push status of the incoming rich push notification.
 NetmeraRichPushObject setRichPushHtml(java.lang.String richPushHtml)
          Set html string when sending rich push notification from SDK.
 void show(android.webkit.WebView pushWebView)
          If you call this method, rich push will be shown in the given WebView.
 
Methods inherited from class com.netmera.mobile.NetmeraPushObject
getCreateDate, getCustomData, getMessage, getNotificationId, getPushType, getTitle, isBackgroundPush, putCustomData, setBackgroundPush, setCustomData, setMessage, setTitle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NetmeraRichPushObject

public NetmeraRichPushObject()
Method Detail

getRichPushHtml

public java.lang.String getRichPushHtml()
Get rich push HTML of the incoming push notification.

Returns:
rich push HTML string.

setRichPushHtml

public NetmeraRichPushObject setRichPushHtml(java.lang.String richPushHtml)
Set html string when sending rich push notification from SDK.

Parameters:
richPushHtml - rich push string in HTML format.

getInjectScript

public java.lang.String getInjectScript()

getRichPushStatus

public java.lang.String getRichPushStatus()
Get push status of the incoming rich push notification. The status can be READ, UNREAD or DELETED. To compare, you can use statics on NetmeraRichPushObject.RichPushStatus class.

Returns:
status of incoming rich push notification

getExpirationDate

public java.util.Date getExpirationDate()

show

public void show(android.webkit.WebView pushWebView)
If you call this method, rich push will be shown in the given WebView.

Parameters:
pushWebView - A web view displays the rich push notification.