|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.netmera.mobile.NetmeraPushInboxDataController
public class NetmeraPushInboxDataController
This class helps you to manage push inbox operations. If you want to write your own push inbox code, you can use this class to get push notification. You can mark as read/unread and delete rich push notifications using the methods in the class.
Constructor Summary | |
---|---|
NetmeraPushInboxDataController()
|
Method Summary | |
---|---|
static java.util.List<NetmeraRichPushObject> |
getUserRelatedPushNotifications()
Gets user related notifications from Netmera. |
static java.util.List<NetmeraRichPushObject> |
getUserRelatedPushNotifications(NetmeraCache.CacheType cacheType)
Gets user related notifications using cache policy from Netmera. |
static void |
getUserRelatedPushNotificationsInBackground(NetmeraCache.CacheType cacheType,
NetmeraCallback<java.util.List<NetmeraRichPushObject>> callback)
Gets user related notifications using cache policy from Netmera in background. |
static void |
getUserRelatedPushNotificationsInBackground(NetmeraCallback<java.util.List<NetmeraRichPushObject>> callback)
Gets user related notifications from Netmera in background. |
static void |
markPushAsDeleted(java.lang.String... notificationIds)
Marks the notifications as deleted. |
static void |
markPushAsRead(java.lang.String... notificationIds)
Marks the notifications as read. |
static void |
markPushAsUnread(java.lang.String... notificationIds)
Marks the notifications as unread. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NetmeraPushInboxDataController()
Method Detail |
---|
public static void getUserRelatedPushNotificationsInBackground(NetmeraCache.CacheType cacheType, NetmeraCallback<java.util.List<NetmeraRichPushObject>> callback)
cacheType
- NetmeraCache.CacheType
objectcallback
- - NetmeraCallback.onFail(NetmeraException)
or
NetmeraCallback.onSuccess(Object)
methods called when
the operation finishes.public static void getUserRelatedPushNotificationsInBackground(NetmeraCallback<java.util.List<NetmeraRichPushObject>> callback)
callback
- - NetmeraCallback.onFail(NetmeraException)
or
NetmeraCallback.onSuccess(Object)
methods called when
the operation finishes.public static java.util.List<NetmeraRichPushObject> getUserRelatedPushNotifications(NetmeraCache.CacheType cacheType) throws NetmeraException
cacheType
- NetmeraCache.CacheType
object
NetmeraRichPushObject
NetmeraException
- if there is any problem related with network or cached data.public static java.util.List<NetmeraRichPushObject> getUserRelatedPushNotifications() throws NetmeraException
NetmeraRichPushObject
NetmeraException
- if there is any network problem.public static void markPushAsRead(java.lang.String... notificationIds) throws NetmeraException
String
array of notification ids or just one String
notification id. The
parameter is var args.
notificationIds
- notification id var args
NetmeraException
- if there is a problem with server connection.public static void markPushAsUnread(java.lang.String... notificationIds) throws NetmeraException
String
array of notification ids or just one String
notification id. The parameter is var args.
notificationIds
- notification id var args
NetmeraException
- if there is a problem with server connection.public static void markPushAsDeleted(java.lang.String... notificationIds) throws NetmeraException
String
array of notification ids or just one String
notification id. The parameter is var args.
notificationIds
- notification id var args
NetmeraException
- if there is a problem with server connection.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |