public final class Notification extends GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Google Mirror API. For a detailed explanation see: http://code.google.com/p/google-http-java-client/wiki/JSON
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Notification() |
| Modifier and Type | Method and Description |
|---|---|
Notification |
clone() |
String |
getCollection()
The collection that generated the notification.
|
String |
getItemId()
The ID of the item that generated the notification.
|
String |
getOperation()
The type of operation that generated the notification.
|
List<UserAction> |
getUserActions()
A list of actions taken by the user that triggered the notification.
|
String |
getUserToken()
The user token provided by the service when it subscribed for notifications.
|
String |
getVerifyToken()
The secret verify token provided by the service when it subscribed for notifications.
|
Notification |
set(String fieldName,
Object value) |
Notification |
setCollection(String collection)
The collection that generated the notification.
|
Notification |
setItemId(String itemId)
The ID of the item that generated the notification.
|
Notification |
setOperation(String operation)
The type of operation that generated the notification.
|
Notification |
setUserActions(List<UserAction> userActions)
A list of actions taken by the user that triggered the notification.
|
Notification |
setUserToken(String userToken)
The user token provided by the service when it subscribed for notifications.
|
Notification |
setVerifyToken(String verifyToken)
The secret verify token provided by the service when it subscribed for notifications.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic String getCollection()
null for nonepublic Notification setCollection(String collection)
collection - collection or null for nonepublic String getItemId()
null for nonepublic Notification setItemId(String itemId)
itemId - itemId or null for nonepublic String getOperation()
null for nonepublic Notification setOperation(String operation)
operation - operation or null for nonepublic List<UserAction> getUserActions()
null for nonepublic Notification setUserActions(List<UserAction> userActions)
userActions - userActions or null for nonepublic String getUserToken()
null for nonepublic Notification setUserToken(String userToken)
userToken - userToken or null for nonepublic String getVerifyToken()
null for nonepublic Notification setVerifyToken(String verifyToken)
verifyToken - verifyToken or null for nonepublic Notification set(String fieldName, Object value)
set in class GenericJsonpublic Notification clone()
clone in class GenericJson