|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.rim.pushsdk.pap.unmarshal.PapMessage
net.rim.pushsdk.pap.unmarshal.ResultNotification
net.rim.pushsdk.acknowledgement.Notification
public class Notification
Represents a PAP result notification along with additional details associated with this notification.
| Constructor Summary | |
|---|---|
Notification()
Default notification constructor. |
|
Notification(ResultNotification resultNotification)
Constructs a notification with all the fields initialized from the given result notification. |
|
Notification(ResultNotification resultNotification,
String pushApplicationId)
Constructs a notification with the given push application id and all the fields initialized from the given result notification. |
|
| Method Summary | |
|---|---|
Integer |
getAddressCount()
Gets a count of all the addresses being pushed to for the push associated with the notification. |
String |
getPushApplicationId()
Gets the push application id associated with the notification. |
boolean |
isLast()
Whether or not this is the last notification being processed for the push it is associated with. |
void |
setAddressCount(Integer addressCount)
Sets the count of all the addresses being pushed to for the push associated with the notification. |
void |
setLast(boolean last)
Set to true if this is the last notification being processed for the push it is associated with. |
void |
setPushApplicationId(String pushApplicationId)
Sets the push application id to be associated with the notification. |
String |
toString()
Constructs a String with all attributes in name = value format. |
| Methods inherited from class net.rim.pushsdk.pap.unmarshal.ResultNotification |
|---|
getAddress, getCode, getDescription, getEventTime, getMessageState, getQualityOfService, getReceivedTime, getSenderAddress, getSenderName, setAddress, setCode, setDescription, setEventTime, setMessageState, setQualityOfService, setReceivedTime, setSenderAddress, setSenderName, validate |
| Methods inherited from class net.rim.pushsdk.pap.unmarshal.PapMessage |
|---|
getPushId, setPushId |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Notification()
public Notification(ResultNotification resultNotification)
resultNotification - a result notification
public Notification(ResultNotification resultNotification,
String pushApplicationId)
resultNotification - a result notificationpushApplicationId - a push application id| Method Detail |
|---|
public String getPushApplicationId()
public void setPushApplicationId(String pushApplicationId)
pushApplicationId - the push application idpublic Integer getAddressCount()
public void setAddressCount(Integer addressCount)
addressCount - the address countpublic boolean isLast()
public void setLast(boolean last)
last - true if it is the last notification; false otherwisepublic String toString()
String with all attributes in name = value format.
toString in class ResultNotificationString representation of this object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||