|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.rim.pushsdk.subscription.SubscriberPartial
net.rim.pushsdk.subscription.Subscriber
public class Subscriber
Represents a subscriber to a push application.
| Field Summary |
|---|
| Fields inherited from class net.rim.pushsdk.subscription.SubscriberPartial |
|---|
address, status, subscriberPrimaryKey, type |
| Constructor Summary | |
|---|---|
Subscriber()
Constructs a subscriber to a push application. |
|
Subscriber(Subscriber subscriber)
Copy Constructor. |
|
Subscriber(SubscriberPartial subPartial)
Constructs a subscriber to a push application setting all fields from the partial details. |
|
Subscriber(SubscriberPrimaryKey subscriberPrimaryKey)
Constructs a subscriber to a push application. |
|
Subscriber(SubscriberPrimaryKey subscriberPrimaryKey,
String address)
Constructs a subscriber to a push application. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Returns true if two subscribers are found to be equal and false otherwise. |
Integer |
getConsecutiveFailedPushCount()
Gets a count of the number of consecutive failed pushes to this subscriber. |
String |
getModel()
Gets the current BlackBerry model number of the subscriber. |
String |
getOsVersion()
Gets the current OS version of the subscriber. |
Date |
getResumeDate()
Gets the date at which a subscriber's subscription to a push application was resumed. |
Date |
getSubscribeDate()
Gets the date at which a subscriber subscribed to a push application. |
SubscriberPartial |
getSubscriberPartial()
Gets partial details for this subscriber. |
Date |
getSuspendDate()
Gets the date at which a subscriber's subscription to a push application was suspended. |
Date |
getUnsubscribeDate()
Gets the date at which a subscriber unsubscribed from a push application. |
int |
hashCode()
Returns a hashcode for this subscriber. |
protected void |
setConsecutiveFailedPushCount(Integer consecutiveFailedPushCount)
Sets the number of consecutive failed pushes to this subscriber. |
void |
setModel(String model)
Sets the current BlackBerry model number of the subscriber. |
void |
setOsVersion(String osVersion)
Sets the current OS version of the subscriber. |
protected void |
setResumeDate(Date resumeDate)
Sets the date at which a subscriber's subscription to a push application was resumed. |
protected void |
setSubscribeDate(Date subscribeDate)
Sets the date at which a subscriber subscribed to a push application. |
protected void |
setSuspendDate(Date suspendDate)
Sets the date at which a subscriber's subscription to a push application was suspended. |
protected void |
setUnsubscribeDate(Date unsubscribeDate)
Sets the date at which a subscriber unsubscribed from a push application. |
String |
toString()
Constructs a String with all attributes in name = value format. |
void |
validate()
Validates a subscriber by verifying that it has i) a non-null OS version, ii) a non-null model number, iii) a non-null subscription date, iv) a subscription date that was in the past, v) as well as performing the same validation as a partial subscriber. |
| Methods inherited from class net.rim.pushsdk.subscription.SubscriberPartial |
|---|
getAddress, getId, getPushApplicationId, getStatus, getSubscriberPrimaryKey, getType, setAddress, setStatus, setSubscriberPrimaryKey, setType |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Subscriber(Subscriber subscriber)
subscriber - a Subscriber objectpublic Subscriber()
public Subscriber(SubscriberPartial subPartial)
subPartial - a subscriber with partial details
public Subscriber(SubscriberPrimaryKey subscriberPrimaryKey,
String address)
subscriberPrimaryKey - the primary key of a subscriberaddress - the address (e.g. PIN or email address) of a subscriberpublic Subscriber(SubscriberPrimaryKey subscriberPrimaryKey)
subscriberPrimaryKey - the primary key of a subscriber| Method Detail |
|---|
public String getOsVersion()
public void setOsVersion(String osVersion)
osVersion - an OS version numberpublic String getModel()
public void setModel(String model)
model - a BlackBerry model number.public Date getSubscribeDate()
protected void setSubscribeDate(Date subscribeDate)
subscribeDate - the subscribe datepublic Date getUnsubscribeDate()
protected void setUnsubscribeDate(Date unsubscribeDate)
unsubscribeDate - the unsubscribe datepublic Date getSuspendDate()
protected void setSuspendDate(Date suspendDate)
suspendDate - the suspension datepublic Date getResumeDate()
protected void setResumeDate(Date resumeDate)
resumeDate - the resumption datepublic Integer getConsecutiveFailedPushCount()
protected void setConsecutiveFailedPushCount(Integer consecutiveFailedPushCount)
consecutiveFailedPushCount - the consecutive failed pushes countpublic SubscriberPartial getSubscriberPartial()
public void validate()
validate in class SubscriberPartialIllegalArgumentException - if validation failspublic int hashCode()
hashCode in class SubscriberPartialpublic boolean equals(Object obj)
equals in class SubscriberPartialpublic String toString()
String with all attributes in name = value format.
toString in class SubscriberPartialString representation of this object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||